org.apache.avalon.fortress.impl.test
Class TestComponentHandler
java.lang.Object
org.apache.avalon.fortress.impl.test.TestComponentHandler
- All Implemented Interfaces:
- ComponentHandler
- public class TestComponentHandler
- extends java.lang.Object
- implements ComponentHandler
TestComponentHandler does XYZ
- Version:
- CVS $ Revision: 1.1 $
- Author:
| Field Summary |
(package private) java.lang.Object |
m_component
|
| Method Summary |
java.lang.Object |
get()
Gets the current reference to a Component according to the policy of the implementation. |
java.lang.Class |
getComponentClass()
Return the component's class that this handler is trying to create. |
void |
prepareHandler()
Actually prepare the handler and make it ready to handle component access. |
void |
put(java.lang.Object component)
Puts the reference back in the ComponentHandler according to the policy of the implementation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_component
java.lang.Object m_component
-
TestComponentHandler
public TestComponentHandler()
getComponentClass
public java.lang.Class getComponentClass()
- Description copied from interface:
ComponentHandler
-
Return the component's class that this handler is trying to create. Used for deubug information.
-
- Specified by:
getComponentClass in interface ComponentHandler
-
- Returns:
- the
Class object for the component
prepareHandler
public void prepareHandler()
throws java.lang.Exception
- Description copied from interface:
ComponentHandler
-
Actually prepare the handler and make it ready to handle component access.
-
- Specified by:
prepareHandler in interface ComponentHandler
-
- Throws:
java.lang.Exception - if unable to prepare handler
get
public java.lang.Object get()
throws java.lang.Exception
- Description copied from interface:
ComponentHandler
-
Gets the current reference to a Component according to the policy of the implementation.
-
- Specified by:
get in interface ComponentHandler
-
- Throws:
java.lang.Exception - if unable to ge tthe compoennt reference
put
public void put(java.lang.Object component)
- Description copied from interface:
ComponentHandler
-
Puts the reference back in the ComponentHandler according to the policy of the implementation.
-
- Specified by:
put in interface ComponentHandler
-
- Parameters:
component - the component to return to the handler
Please see keelframework.org for information about new Keel releases.