org.apache.geronimo.proxy
Class SimpleContainer

java.lang.Object
  extended byorg.apache.geronimo.proxy.SimpleComponent
      extended byorg.apache.geronimo.proxy.SimpleContainer
All Implemented Interfaces:
Component, Container, Serializable
Direct Known Subclasses:
SimpleRPCContainer

public class SimpleContainer
extends SimpleComponent
implements Container

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

Constructor Summary
SimpleContainer()
           
 
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 class org.apache.geronimo.proxy.SimpleComponent
getContainer, getObjectName, setContainer, setObjectName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.geronimo.core.service.Component
getContainer, setContainer
 

Constructor Detail

SimpleContainer

public SimpleContainer()
Method Detail

addComponent

public void addComponent(Component component)
Description copied from interface: Container
Add a component to the set for a Container

Specified by:
addComponent in interface Container
Parameters:
component -
See Also:
Container.addComponent(org.apache.geronimo.core.service.Component)

getComponents

public List getComponents()
Description copied from interface: Container
Get all the Components known to the Container

Specified by:
getComponents in interface Container
Returns:
an immutable List of Components
See Also:
Container.getComponents()

removeComponent

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

Specified by:
removeComponent in interface Container
Parameters:
component - the Component to remove
Throws:
Exception - if the Component cannot be removed
See Also:
Container.removeComponent(org.apache.geronimo.core.service.Component)


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