org.apache.avalon.fortress.impl.handler
Interface ReleasableComponent

All Known Implementing Classes:
AbstractReleasableComponent

public interface ReleasableComponent

This interfaces marks a component that can be released without using the corresponding ComponentHandler.

Since:
1.2
Version:
CVS $Revision: 1.2 $ $Date: 2004/03/13 17:57:59 $
Author:
Avalon Development Team

Method Summary
 void initialize(ComponentHandler handler)
          Initialize this component with the corresponding component handler.
 void releaseOnComponentHandler()
          Puts the reference back in the ComponentHandler according to the policy of the implementation.
 

Method Detail

initialize

public void initialize(ComponentHandler handler)
                throws java.lang.Exception
Initialize this component with the corresponding component handler.

Parameters:
handler - The component handler used to put this component back again
Throws:
ServiceException - If the component is already initialized or the handler is missing
java.lang.Exception

releaseOnComponentHandler

public void releaseOnComponentHandler()
Puts the reference back in the ComponentHandler according to the policy of the implementation. In fact this calls the put method on the ComponentHandler



Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.