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