@Service public class DelegatingNamingObjectFactory extends Object implements NamingObjectFactory
NamingObjectFactoryNamingObjectProxy.InitializationNamingObjectProxy| Constructor and Description |
|---|
DelegatingNamingObjectFactory(String name,
NamingObjectFactory delegate,
boolean cacheResult)
Creates a factory that will use another factory to do the work
|
| 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 DelegatingNamingObjectFactory(String name, NamingObjectFactory delegate, boolean cacheResult)
name - the name of the objectdelegate - the factory that will do the actual creation/lookupcacheResult - whether the object may have been cachedpublic boolean isCreateResultCacheable()
NamingObjectFactoryisCreateResultCacheable in interface NamingObjectFactorypublic Object create(Context ic) throws NamingException
NamingObjectProxycreate in interface NamingObjectProxyNamingExceptionCopyright © 2019. All rights reserved.