|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.fortress.impl.factory.AbstractObjectFactory
public abstract class AbstractObjectFactory
AbstractObjectFactory does XYZ
| Field Summary | |
|---|---|
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. |
| Fields inherited from interface org.apache.excalibur.instrument.Instrumentable |
|---|
EMPTY_INSTRUMENT_ARRAY, EMPTY_INSTRUMENTABLE_ARRAY |
| Constructor Summary | |
|---|---|
AbstractObjectFactory(org.d_haven.mpool.ObjectFactory objectFactory)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.Class[] INVALID_INTERFACES
protected final org.d_haven.mpool.ObjectFactory m_delegateFactory
ObjectFactory proper
we delegate all calls to.
| Constructor Detail |
|---|
public AbstractObjectFactory(org.d_haven.mpool.ObjectFactory objectFactory)
| Method Detail |
|---|
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 class
private static void guessWorkInterfaces(java.lang.Class clazz,
java.util.Set workInterfaces)
clazz - the classworkInterfaces - the set of current work interfaces
private static void addInterfaces(java.lang.Class[] interfaces,
java.util.Set workInterfaces)
interfaces - the array of interfacesworkInterfaces - the set of current work interfaces
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||