@Service public class SimpleNamingObjectFactory extends Object implements NamingObjectFactory
This class is always cacheable. The create method will always return the object originally given
NamingObjectProxy.InitializationNamingObjectProxy| Constructor and Description |
|---|
SimpleNamingObjectFactory(String name,
Object value)
Creates a factory that will also return instances of the object
|
| 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 boolean isCreateResultCacheable()
NamingObjectFactoryisCreateResultCacheable in interface NamingObjectFactorypublic Object create(Context ic)
NamingObjectProxycreate in interface NamingObjectProxyCopyright © 2017. All rights reserved.