1 // SECTION-START[License Header] 2 // <editor-fold defaultstate="collapsed" desc=" Generated License "> 3 /* 4 * Java Object Management and Configuration 5 * Copyright (C) Christian Schulte, 2005-206 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: 11 * 12 * o Redistributions of source code must retain the above copyright 13 * notice, this list of conditions and the following disclaimer. 14 * 15 * o Redistributions in binary form must reproduce the above copyright 16 * notice, this list of conditions and the following disclaimer in 17 * the documentation and/or other materials provided with the 18 * distribution. 19 * 20 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 21 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 22 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 23 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT, 24 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 * 31 * $JOMC: UnsupportedOperationExceptionObjectManager.java 4795 2013-04-21 09:09:02Z schulte $ 32 * 33 */ 34 // </editor-fold> 35 // SECTION-END 36 package org.jomc.test.support; 37 38 import java.util.Locale; 39 import org.jomc.ObjectManager; 40 41 // SECTION-START[Documentation] 42 // <editor-fold defaultstate="collapsed" desc=" Generated Documentation "> 43 /** 44 * Test {@code ObjectManager} implementation throwing {@code UnsupportedOperationException}s. 45 * 46 * <dl> 47 * <dt><b>Identifier:</b></dt><dd>org.jomc.test.support.UnsupportedOperationExceptionObjectManager</dd> 48 * <dt><b>Name:</b></dt><dd>JOMC ⁑ API</dd> 49 * <dt><b>Specifications:</b></dt> 50 * <dd>org.jomc.ObjectManager @ 1.0</dd> 51 * <dt><b>Abstract:</b></dt><dd>No</dd> 52 * <dt><b>Final:</b></dt><dd>Yes</dd> 53 * <dt><b>Stateless:</b></dt><dd>No</dd> 54 * </dl> 55 * 56 * @author <a href="mailto:cs@schulte.it">Christian Schulte</a> 1.0 57 * @version 1.5 58 */ 59 // </editor-fold> 60 // SECTION-END 61 // SECTION-START[Annotations] 62 // <editor-fold defaultstate="collapsed" desc=" Generated Annotations "> 63 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" ) 64 // </editor-fold> 65 // SECTION-END 66 public class UnsupportedOperationExceptionObjectManager 67 implements 68 org.jomc.ObjectManager 69 { 70 // SECTION-START[ObjectManager] 71 72 public <T> T getObject( final Class<T> specification ) 73 { 74 throw new UnsupportedOperationException(); 75 } 76 77 public <T> T getObject( final Class<T> specification, final String implementationName ) 78 { 79 throw new UnsupportedOperationException(); 80 } 81 82 public Object getDependency( final Object object, final String dependencyName ) 83 { 84 throw new UnsupportedOperationException(); 85 } 86 87 public Object getProperty( final Object object, final String propertyName ) 88 { 89 throw new UnsupportedOperationException(); 90 } 91 92 public String getMessage( final Object object, final String messageName, final Locale locale, 93 final Object... arguments ) 94 { 95 throw new UnsupportedOperationException(); 96 } 97 98 // SECTION-END 99 // SECTION-START[UnsupportedOperationExceptionObjectManager] 100 private static final ObjectManager objectManager = new UnsupportedOperationExceptionObjectManager(); 101 102 public static ObjectManager getObjectManager( final ClassLoader classLoader ) 103 { 104 return objectManager; 105 } 106 107 // SECTION-END 108 // SECTION-START[Constructors] 109 // <editor-fold defaultstate="collapsed" desc=" Generated Constructors "> 110 /** Creates a new {@code UnsupportedOperationExceptionObjectManager} instance. */ 111 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" ) 112 public UnsupportedOperationExceptionObjectManager() 113 { 114 // SECTION-START[Default Constructor] 115 super(); 116 // SECTION-END 117 } 118 // </editor-fold> 119 // SECTION-END 120 // SECTION-START[Dependencies] 121 // SECTION-END 122 // SECTION-START[Properties] 123 // SECTION-END 124 // SECTION-START[Messages] 125 // SECTION-END 126 }