@Contract
public interface NamingUtils
NamingObjectFactoryNamingObjectFactory createSimpleNamingObjectFactory(String name, Object value)
SimpleNamingObjectFactoryname - the name of the object. This will be ignoredvalue - the object that the create method of the factory will returnNamingObjectFactory createLazyInitializationNamingObjectFactory(String name, String jndiName, boolean cacheResult)
name - jndiName - cacheResult - NamingObjectFactory createLazyNamingObjectFactory(String name, String jndiName, boolean cacheResult)
JndiNamingObjectFactoryname - the name of the objectjndiName - the jndi name of the object to create/lookupcacheResult - whether the result may have been cachedNamingObjectFactory createCloningNamingObjectFactory(String name, Object value)
CloningNamingObjectFactory
that will create copies of the given object.name - the name of the objectvalue - the object that will be copied when create is calledNamingObjectFactory createCloningNamingObjectFactory(String name, NamingObjectFactory delegate)
CloningNamingObjectFactory
that will create copies of the object created by the delegate.name - the name of the objectdelegate - the NamingObjectFactory that creates the object that will then be copiedNamingObjectFactory createDelegatingNamingObjectFactory(String name, NamingObjectFactory delegate, boolean cacheResult)
DelegatingNamingObjectFactory
that will use another NamingObjectFactory to do the workname - name of objectdelegate - NamingObjectFactory to do the workcacheResult - whether the result may have been cachedObject makeCopyOfObject(Object obj)
Serializableobj - a non-serializable objectRuntimeExceptionCopyright © 2017. All rights reserved.