public final class ProxyObjectFactory extends AbstractObjectFactory
m_delegateFactory| Constructor and Description |
|---|
ProxyObjectFactory(org.d_haven.mpool.ObjectFactory objectFactory)
Create factory that delegates to specified factory.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avalon.framework.component.Component |
createProxy(java.lang.Object service)
Get the Component wrapped in the proxy.
|
void |
dispose(java.lang.Object object)
Dispose of objects created by this factory.
|
static java.lang.Object |
getObject(java.lang.Object proxy)
Get the target object from specified proxy.
|
java.lang.Object |
newInstance()
Create a new instance from delegated factory and proxy it.
|
getChildInstrumentables, getCreatedClass, getInstrumentableName, getInstruments, guessWorkInterfaces, setInstrumentableNamepublic ProxyObjectFactory(org.d_haven.mpool.ObjectFactory objectFactory)
throws java.lang.NullPointerException
objectFactory - the factory to delegate tojava.lang.NullPointerException - if the supplied object factory is nullpublic java.lang.Object newInstance()
throws java.lang.Exception
newInstance in interface org.d_haven.mpool.ObjectFactorynewInstance in class AbstractObjectFactoryjava.lang.Exception - if unable to create new instanceObjectFactory.newInstance()public void dispose(java.lang.Object object)
throws java.lang.Exception
dispose in interface org.d_haven.mpool.ObjectFactorydispose in class AbstractObjectFactoryobject - the proxied objectjava.lang.Exception - if unable to dispose of objectObjectFactory.dispose(Object)public static org.apache.avalon.framework.component.Component createProxy(java.lang.Object service)
service - the service object to proxypublic static java.lang.Object getObject(java.lang.Object proxy)
proxy - the proxy objectjava.lang.NullPointerException - if unable to aquire target object,
or specified object is not a proxy