Package com.sun.enterprise.naming.spi
Interface NamingUtils
-
- All Known Implementing Classes:
NamingUtilsImpl
@Contract public interface NamingUtilsInterface for methods to create instances ofNamingObjectFactory
-
-
Method Summary
-
-
-
Method Detail
-
createSimpleNamingObjectFactory
NamingObjectFactory createSimpleNamingObjectFactory(String name, Object value)
Creates an instance ofSimpleNamingObjectFactory- Parameters:
name- the name of the object. This will be ignoredvalue- the object that the create method of the factory will return- Returns:
-
createLazyInitializationNamingObjectFactory
NamingObjectFactory createLazyInitializationNamingObjectFactory(String name, String jndiName, boolean cacheResult)
- Parameters:
name-jndiName-cacheResult-- Returns:
-
createLazyNamingObjectFactory
NamingObjectFactory createLazyNamingObjectFactory(String name, String jndiName, boolean cacheResult)
Creates an instance ofJndiNamingObjectFactory- Parameters:
name- the name of the objectjndiName- the jndi name of the object to create/lookupcacheResult- whether the result may have been cached- Returns:
-
createCloningNamingObjectFactory
NamingObjectFactory createCloningNamingObjectFactory(String name, Object value)
Creates an instance ofCloningNamingObjectFactorythat will create copies of the given object.- Parameters:
name- the name of the objectvalue- the object that will be copied when create is called- Returns:
-
createCloningNamingObjectFactory
NamingObjectFactory createCloningNamingObjectFactory(String name, NamingObjectFactory delegate)
Creates an instance ofCloningNamingObjectFactorythat will create copies of the object created by the delegate.- Parameters:
name- the name of the objectdelegate- theNamingObjectFactorythat creates the object that will then be copied- Returns:
-
createDelegatingNamingObjectFactory
NamingObjectFactory createDelegatingNamingObjectFactory(String name, NamingObjectFactory delegate, boolean cacheResult)
Creates an instance ofDelegatingNamingObjectFactorythat will use anotherNamingObjectFactoryto do the work- Parameters:
name- name of objectdelegate-NamingObjectFactoryto do the workcacheResult- whether the result may have been cached- Returns:
-
makeCopyOfObject
Object makeCopyOfObject(Object obj)
Makes a new instance of the specified object. Object cannot implementSerializable- Parameters:
obj- a non-serializable object- Returns:
- Throws:
RuntimeException
-
-