|
Keel 2.1RC2 | ||||||||||
| 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
AbstractObjectFactory does XYZ
| Field Summary | |
private static java.lang.Class[] |
INVALID_INTERFACESThe list interfaces that will not be proxied. |
protected ObjectFactory |
m_delegateFactoryThe ObjectFactory proper we delegate all calls to. |
| Fields inherited from interface org.apache.excalibur.mpool.ObjectFactory |
ROLE |
| Fields inherited from interface org.apache.excalibur.instrument.Instrumentable |
EMPTY_INSTRUMENT_ARRAY, EMPTY_INSTRUMENTABLE_ARRAY |
| Constructor Summary | |
AbstractObjectFactory(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)Performs any deconstruction that is necessary for the object. |
Instrumentable[] |
getChildInstrumentables()Any Object which implements Instrumentable can also make use of other Instrumentable child objects. |
java.lang.Class |
getCreatedClass()Get the class of the object you are creating. |
java.lang.String |
getInstrumentableName()Gets the name of the Instrumentable. |
Instrument[] |
getInstruments()Obtain a reference to all the Instruments that the Instrumentable object wishes to expose. |
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()Create a new instance of the object being pooled. |
void |
setInstrumentableName(java.lang.String name)Sets the name for the Instrumentable. |
| 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 ObjectFactory m_delegateFactory
ObjectFactory proper we delegate all calls to.
| Constructor Detail |
public AbstractObjectFactory(ObjectFactory objectFactory)
| Method Detail |
public abstract java.lang.Object newInstance()
throws java.lang.Exception
ObjectFactorynewInstance in interface ObjectFactoryjava.lang.Exception - if the object cannot be instantiatedObjectFactory.newInstance()public final java.lang.Class getCreatedClass()
ObjectFactorygetCreatedClass in interface ObjectFactoryObjectFactory.getCreatedClass()
public abstract void dispose(java.lang.Object object)
throws java.lang.Exception
ObjectFactorydispose in interface ObjectFactoryobject - to destroyjava.lang.Exception - if there is any other reason that the factory has problems disposing of the object.ObjectFactory.dispose(Object)public final void setInstrumentableName(java.lang.String name)
InstrumentableThis value may be set by a parent Instrumentable, or by the InstrumentManager using the value of the 'instrumentable' attribute in the configuration of the component.
setInstrumentableName in interface Instrumentablename - The name used to identify a Instrumentable.public final java.lang.String getInstrumentableName()
InstrumentablegetInstrumentableName in interface Instrumentablepublic final Instrument[] getInstruments()
InstrumentablegetInstruments in interface Instrumentablepublic final Instrumentable[] getChildInstrumentables()
InstrumentablegetChildInstrumentables in interface 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
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||