Package com.sun.enterprise.naming.util
Class NamingUtilsImpl
- java.lang.Object
-
- com.sun.enterprise.naming.util.NamingUtilsImpl
-
- All Implemented Interfaces:
NamingUtils
@Service @Singleton public class NamingUtilsImpl extends Object implements NamingUtils
This is a utils class for refactoring the following method.
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXCEPTION_COPY_MUTABLE
-
Constructor Summary
Constructors Constructor Description NamingUtilsImpl()
-
Method Summary
-
-
-
Field Detail
-
EXCEPTION_COPY_MUTABLE
public static final String EXCEPTION_COPY_MUTABLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
createSimpleNamingObjectFactory
public NamingObjectFactory createSimpleNamingObjectFactory(String name, Object value)
Description copied from interface:NamingUtilsCreates an instance ofSimpleNamingObjectFactory- Specified by:
createSimpleNamingObjectFactoryin interfaceNamingUtils- Parameters:
name- the name of the object. This will be ignoredvalue- the object that the create method of the factory will return- Returns:
-
createLazyNamingObjectFactory
public NamingObjectFactory createLazyNamingObjectFactory(String name, String jndiName, boolean cacheResult)
Description copied from interface:NamingUtilsCreates an instance ofJndiNamingObjectFactory- Specified by:
createLazyNamingObjectFactoryin interfaceNamingUtils- Parameters:
name- the name of the objectjndiName- the jndi name of the object to create/lookupcacheResult- whether the result may have been cached- Returns:
-
createLazyInitializationNamingObjectFactory
public NamingObjectFactory createLazyInitializationNamingObjectFactory(String name, String jndiName, boolean cacheResult)
- Specified by:
createLazyInitializationNamingObjectFactoryin interfaceNamingUtils- Returns:
-
createCloningNamingObjectFactory
public NamingObjectFactory createCloningNamingObjectFactory(String name, Object value)
Description copied from interface:NamingUtilsCreates an instance ofCloningNamingObjectFactorythat will create copies of the given object.- Specified by:
createCloningNamingObjectFactoryin interfaceNamingUtils- Parameters:
name- the name of the objectvalue- the object that will be copied when create is called- Returns:
-
createCloningNamingObjectFactory
public NamingObjectFactory createCloningNamingObjectFactory(String name, NamingObjectFactory delegate)
Description copied from interface:NamingUtilsCreates an instance ofCloningNamingObjectFactorythat will create copies of the object created by the delegate.- Specified by:
createCloningNamingObjectFactoryin interfaceNamingUtils- Parameters:
name- the name of the objectdelegate- theNamingObjectFactorythat creates the object that will then be copied- Returns:
-
createDelegatingNamingObjectFactory
public NamingObjectFactory createDelegatingNamingObjectFactory(String name, NamingObjectFactory delegate, boolean cacheResult)
Description copied from interface:NamingUtilsCreates an instance ofDelegatingNamingObjectFactorythat will use anotherNamingObjectFactoryto do the work- Specified by:
createDelegatingNamingObjectFactoryin interfaceNamingUtils- Parameters:
name- name of objectdelegate-NamingObjectFactoryto do the workcacheResult- whether the result may have been cached- Returns:
-
makeCopyOfObject
public Object makeCopyOfObject(Object obj)
Description copied from interface:NamingUtilsMakes a new instance of the specified object. Object cannot implementSerializable- Specified by:
makeCopyOfObjectin interfaceNamingUtils- Parameters:
obj- a non-serializable object- Returns:
-
-