org.picocontainer.gems.jndi
Class JNDIContainerVisitor
java.lang.Object
org.picocontainer.visitors.AbstractPicoVisitor
org.picocontainer.visitors.TraversalCheckingVisitor
org.picocontainer.gems.jndi.JNDIContainerVisitor
- All Implemented Interfaces:
- PicoVisitor
public class JNDIContainerVisitor
- extends TraversalCheckingVisitor
traverse pico container and expose components to JNDI on
sight of JNDIExposed
- Author:
- Konstantin Pribluda
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JNDIContainerVisitor
public JNDIContainerVisitor()
visitComponentAdapter
public void visitComponentAdapter(ComponentAdapter componentAdapter)
- in case component adapter is JNDIExposed, poke it gently and
it will create component and register it to JNDI if not already
done.
- Specified by:
visitComponentAdapter
in interface PicoVisitor
- Overrides:
visitComponentAdapter
in class TraversalCheckingVisitor
visitContainer
public boolean visitContainer(PicoContainer pico)
- Provides the PicoContainer, that can resolve the components to register as MBean.
- Specified by:
visitContainer
in interface PicoVisitor
- Overrides:
visitContainer
in class TraversalCheckingVisitor
- See Also:
PicoVisitor.visitContainer(org.picocontainer.PicoContainer)
traverse
public Object traverse(Object node)
- Entry point for the visitor traversal.
- Specified by:
traverse
in interface PicoVisitor
- Overrides:
traverse
in class AbstractPicoVisitor
- Returns:
- Returns a
Set
with all ObjectInstance instances retrieved from the MBeanServer
for the
registered MBeans. - See Also:
AbstractPicoVisitor.traverse(java.lang.Object)
Copyright © 2003-2010 Codehaus. All Rights Reserved.