org.apache.geronimo.core.service
Interface Container

All Superinterfaces:
Component
All Known Subinterfaces:
ManagedContainer, RPCContainer
All Known Implementing Classes:
SimpleContainer, SimpleRPCContainer

public interface Container
extends Component

Container

Version:
$Revision: 1.3 $ $Date: 2004/03/10 09:58:42 $

Method Summary
 void addComponent(Component component)
          Add a component to the set for a Container
 List getComponents()
          Get all the Components known to the Container
 void removeComponent(Component component)
          Remove a Component from the Container.
 
Methods inherited from interface org.apache.geronimo.core.service.Component
getContainer, setContainer
 

Method Detail

addComponent

public void addComponent(Component component)
Add a component to the set for a Container

Parameters:
component -

getComponents

public List getComponents()
Get all the Components known to the Container

Returns:
an immutable List of Components

removeComponent

public void removeComponent(Component component)
                     throws Exception
Remove a Component from the Container. If the Component is not in the Container, an Exception is thrown.

Parameters:
component - the Component to remove
Throws:
Exception - if the Component cannot be removed


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.