org.apache.geronimo.core.service
Interface Container

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

public interface Container
extends Component

Container

Version:
$Rev: 355877 $ $Date: 2005-12-11 03:48:27 +0100 (Sun, 11 Dec 2005) $

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-2007 Apache Software Foundation. All Rights Reserved.