public abstract class AbstractObjectFactory
extends java.lang.Object
implements org.d_haven.mpool.ObjectFactory, org.apache.excalibur.instrument.Instrumentable
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.Class[] |
INVALID_INTERFACES
The list interfaces that will not be proxied.
|
protected org.d_haven.mpool.ObjectFactory |
m_delegateFactory
The
ObjectFactory proper
we delegate all calls to. |
| Constructor and Description |
|---|
AbstractObjectFactory(org.d_haven.mpool.ObjectFactory objectFactory) |
| Modifier and Type | Method and Description |
|---|---|
private static void |
addInterfaces(java.lang.Class[] interfaces,
java.util.Set workInterfaces)
Get a list of interfaces to proxy by scanning through
all interfaces a class implements.
|
abstract void |
dispose(java.lang.Object object) |
org.apache.excalibur.instrument.Instrumentable[] |
getChildInstrumentables() |
java.lang.Class |
getCreatedClass() |
java.lang.String |
getInstrumentableName() |
org.apache.excalibur.instrument.Instrument[] |
getInstruments() |
protected static java.lang.Class[] |
guessWorkInterfaces(java.lang.Class clazz)
Get a list of interfaces to proxy by scanning through
all interfaces a class implements and skipping invalid interfaces
(as defined in
INVALID_INTERFACES). |
private static void |
guessWorkInterfaces(java.lang.Class clazz,
java.util.Set workInterfaces)
Get a list of interfaces to proxy by scanning through
all interfaces a class implements.
|
abstract java.lang.Object |
newInstance() |
void |
setInstrumentableName(java.lang.String name) |
private static final java.lang.Class[] INVALID_INTERFACES
protected final org.d_haven.mpool.ObjectFactory m_delegateFactory
ObjectFactory proper
we delegate all calls to.public AbstractObjectFactory(org.d_haven.mpool.ObjectFactory objectFactory)
public abstract java.lang.Object newInstance()
throws java.lang.Exception
newInstance in interface org.d_haven.mpool.ObjectFactoryjava.lang.ExceptionObjectFactory.newInstance()public final java.lang.Class getCreatedClass()
getCreatedClass in interface org.d_haven.mpool.ObjectFactoryObjectFactory.getCreatedClass()public abstract void dispose(java.lang.Object object)
throws java.lang.Exception
dispose in interface org.d_haven.mpool.ObjectFactoryjava.lang.ExceptionObjectFactory.dispose(Object)public final void setInstrumentableName(java.lang.String name)
setInstrumentableName in interface org.apache.excalibur.instrument.Instrumentablepublic final java.lang.String getInstrumentableName()
getInstrumentableName in interface org.apache.excalibur.instrument.Instrumentablepublic final org.apache.excalibur.instrument.Instrument[] getInstruments()
getInstruments in interface org.apache.excalibur.instrument.Instrumentablepublic final org.apache.excalibur.instrument.Instrumentable[] getChildInstrumentables()
getChildInstrumentables in interface org.apache.excalibur.instrument.Instrumentableprotected static java.lang.Class[] guessWorkInterfaces(java.lang.Class clazz)
INVALID_INTERFACES).clazz - the classprivate static void guessWorkInterfaces(java.lang.Class clazz,
java.util.Set workInterfaces)
clazz - the classworkInterfaces - the set of current work interfacesprivate static void addInterfaces(java.lang.Class[] interfaces,
java.util.Set workInterfaces)
interfaces - the array of interfacesworkInterfaces - the set of current work interfaces