biz.hammurapi.config
Class JndiBridge

java.lang.Object
  extended by biz.hammurapi.config.ComponentBase
      extended by biz.hammurapi.config.JndiBridge
All Implemented Interfaces:
Component, Context, DomConfigurable, MeasurementCollector, MeasurementConsumer

public class JndiBridge
extends ComponentBase
implements DomConfigurable

Binds to jndi context and bridges pv-naming with jndi naming.

Author:
Pavel Vlasov

Field Summary
 
Fields inherited from class biz.hammurapi.config.ComponentBase
owner
 
Constructor Summary
JndiBridge()
           
 
Method Summary
 void configure(org.w3c.dom.Node configNode, Context context)
          Reads configuration from Node
protected  java.lang.Object getChild(java.lang.String name)
          Override this method if component has subcomponents.
 void start()
          Invoked by container before the first use.
 void stop()
          Invoked by container when component is not needed anymore.
 
Methods inherited from class biz.hammurapi.config.ComponentBase
addMeasurement, get, getMeasurementConsumer, getOwner, getOwner, setMeasurementConsumer, setOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiBridge

public JndiBridge()
Method Detail

start

public void start()
           throws ConfigurationException
Description copied from interface: Component
Invoked by container before the first use. Component shall perform initialization in this method.

Specified by:
start in interface Component
Throws:
ConfigurationException

stop

public void stop()
          throws ConfigurationException
Description copied from interface: Component
Invoked by container when component is not needed anymore. Component shall perform cleanup in this method.

Specified by:
stop in interface Component
Throws:
ConfigurationException

getChild

protected java.lang.Object getChild(java.lang.String name)
Description copied from class: ComponentBase
Override this method if component has subcomponents.

Overrides:
getChild in class ComponentBase
Returns:

configure

public void configure(org.w3c.dom.Node configNode,
                      Context context)
               throws ConfigurationException
Description copied from interface: DomConfigurable
Reads configuration from Node

Specified by:
configure in interface DomConfigurable
Throws:
ConfigurationException


Copyright © 2003 Hammurapi Group. All Rights Reserved.