Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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:
  org.picocontainer.PicoVisitor

    public class JNDIContainerVisitor

extends org.picocontainer.visitors.TraversalCheckingVisitor

traverse pico container and expose components to JNDI on sight of JNDIExposed

Author:
  k.pribluda

Nested Class Summary

Nested classes/interfaces inherited from class org.picocontainer.visitors.AbstractPicoVisitor
`org.picocontainer.visitors.AbstractPicoVisitor.PicoVisitorTraversalException`

Field Summary

Fields inherited from interface org.picocontainer.PicoVisitor
`ABORT_TRAVERSAL, CONTINUE_TRAVERSAL`

Constructor Summary
`JNDIContainerVisitor()`

Method Summary
`Object` | `traverse(Object node)` Entry point for the visitor traversal.
`void` | `visitComponentAdapter(org.picocontainer.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.
`boolean` | `visitContainer(org.picocontainer.PicoContainer pico)` Provides the PicoContainer, that can resolve the components to register as MBean.

Methods inherited from class org.picocontainer.visitors.TraversalCheckingVisitor
`visitComponentFactory, visitParameter`

Methods inherited from class org.picocontainer.visitors.AbstractPicoVisitor
`checkTraversal`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### JNDIContainerVisitor

    public JNDIContainerVisitor()

Method Detail

### visitComponentAdapter

    public void visitComponentAdapter(org.picocontainer.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 `org.picocontainer.PicoVisitor`
  Overrides:
    `visitComponentAdapter` in class `org.picocontainer.visitors.TraversalCheckingVisitor`

### visitContainer

    public boolean visitContainer(org.picocontainer.PicoContainer pico)

  Provides the PicoContainer, that can resolve the components to register as MBean.

  Specified by:
    `visitContainer` in interface `org.picocontainer.PicoVisitor`
  Overrides:
    `visitContainer` in class `org.picocontainer.visitors.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 `org.picocontainer.PicoVisitor`
  Overrides:
    `traverse` in class `org.picocontainer.visitors.AbstractPicoVisitor`
  Returns:
    Returns a `Set` with all ObjectInstance instances retrieved from the `MBeanServer` for the registered MBeans.
  See Also:
    `AbstractPicoVisitor.traverse(java.lang.Object)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2009 Codehaus. All Rights Reserved.