org.apache.geronimo.proxy
Class SimpleComponent

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

public class SimpleComponent
extends Object
implements Component, Serializable

Version:
$Revision: 1.4 $ $Date: 2004/03/10 09:58:43 $
See Also:
Serialized Form

Constructor Summary
SimpleComponent()
           
 
Method Summary
 Container getContainer()
          Gets the container to which this component belongs.
 String getObjectName()
           
 void setContainer(Container container)
          Sets the container which ownes this component.
 void setObjectName(String objectName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleComponent

public SimpleComponent()
Method Detail

getContainer

public Container getContainer()
Description copied from interface: Component
Gets the container to which this component belongs.

Specified by:
getContainer in interface Component
Returns:
the container for which invocations will be intercepted
See Also:
Component.getContainer()

setContainer

public void setContainer(Container container)
                  throws IllegalStateException,
                         IllegalArgumentException
Description copied from interface: Component
Sets the container which ownes this component. The contianer can only be set before create() or to null after the destroy().

Specified by:
setContainer in interface Component
Parameters:
container - which owns this component
Throws:
IllegalStateException - if this component is not in the not-created or destroyed state
IllegalArgumentException - if this comonent has not been created and the container parameter is null, or the component has been destroyed and the container parameter is NOT null
See Also:
Component.setContainer(org.apache.geronimo.core.service.Container)

getObjectName

public String getObjectName()
See Also:
org.apache.geronimo.core.service.Component#getObjectName()

setObjectName

public void setObjectName(String objectName)
Parameters:
objectName -


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