public interface Contained
Decoupling interface which specifies that an implementing class is associated with at most one Container instance.
Modifier and Type | Method and Description |
---|---|
Container |
getContainer()
Return the
Container with which this instance is associated
(if any); otherwise return null . |
void |
setContainer(Container container)
Set the
Container with which this instance is associated. |
Container getContainer()
Container
with which this instance is associated
(if any); otherwise return null
.void setContainer(Container container)
Container
with which this instance is associated.container
- The Container instance with which this instance is to
be associated, or null
to disassociate this instance
from any ContainerCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.