org.hypergraphdb.event
Class HGListenerAtom

java.lang.Object
  extended by org.hypergraphdb.event.HGListenerAtom

public class HGListenerAtom
extends java.lang.Object

This is a simple bean-like atom that can be used to register listeners that will be automatically loaded when a HyperGraph is open. To configure such an auto-loaded listeners, instantiate a HGListenerAtom, set the event type and listener class properties and add it to a HyperGraph instance. The listener will be automatically registered with the event manager the next time this HyperGraph is opened. If the listener should become effective right away, you will need to register it with the event manager separately.

Author:
boris

Constructor Summary
HGListenerAtom()
           
HGListenerAtom(java.lang.String eventClassName, java.lang.String listenerClassName)
           
 
Method Summary
 java.lang.String getEventClassName()
           
 java.lang.String getListenerClassName()
           
 void setEventClassName(java.lang.String eventClassName)
           
 void setListenerClassName(java.lang.String listenerClassName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HGListenerAtom

public HGListenerAtom()

HGListenerAtom

public HGListenerAtom(java.lang.String eventClassName,
                      java.lang.String listenerClassName)
Method Detail

getEventClassName

public java.lang.String getEventClassName()

setEventClassName

public void setEventClassName(java.lang.String eventClassName)

getListenerClassName

public java.lang.String getListenerClassName()

setListenerClassName

public void setListenerClassName(java.lang.String listenerClassName)