@Service public class CloningNamingObjectFactory extends Object implements NamingObjectFactory
NamingObjectProxy.InitializationNamingObjectProxy| Constructor and Description |
|---|
CloningNamingObjectFactory(String name,
NamingObjectFactory delegate)
Creates a factory that will create copies of whatever the delegate us to hold
|
CloningNamingObjectFactory(String name,
Object value)
Creates a factory that will create copies of the given value
|
| Modifier and Type | Method and Description |
|---|---|
Object |
create(Context ic)
Create and return an object.
|
boolean |
isCreateResultCacheable()
Tells if the result of create() is cacheable.
|
public CloningNamingObjectFactory(String name, Object value)
name - name of object. Ignoredvalue - object that will be cloned when create is calledpublic CloningNamingObjectFactory(String name, NamingObjectFactory delegate)
name - name of object. Ignoreddelegate - Factory to hold the object which will be copied.public boolean isCreateResultCacheable()
NamingObjectFactoryisCreateResultCacheable in interface NamingObjectFactorypublic Object create(Context ic) throws NamingException
NamingObjectProxycreate in interface NamingObjectProxyNamingExceptionCopyright © 2017. All rights reserved.