@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()
NamingObjectFactory
isCreateResultCacheable
in interface NamingObjectFactory
public Object create(Context ic) throws NamingException
NamingObjectProxy
create
in interface NamingObjectProxy
NamingException
Copyright © 2018. All rights reserved.