org.oddjob.jmx.general
Class SimpleDomainNode

java.lang.Object
  extended by org.oddjob.jmx.general.SimpleDomainNode
All Implemented Interfaces:
Iconic, Destroyable, DomainNode, LogEnabled, Structural

public class SimpleDomainNode
extends Object
implements DomainNode, Iconic, LogEnabled

A simple implementation of a DomainNode.

Author:
rob

Constructor Summary
SimpleDomainNode(String domain, MBeanSession mBeanSession)
          Constructor.
 
Method Summary
 void addIconListener(IconListener listener)
          Add an icon listener.
 void addStructuralListener(StructuralListener listener)
          Add a listener.
 void destroy()
          destroy the client side object.
 ImageIcon iconForId(String iconId)
          Return an icon tip for a given id.
 void initialise()
          Called from the service to initialise the node.
 String loggerName()
          Provide the logger name.
 void removeIconListener(IconListener listener)
          Remove an icon listener.
 void removeStructuralListener(StructuralListener listener)
          Remove a listener.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleDomainNode

public SimpleDomainNode(String domain,
                        MBeanSession mBeanSession)
Constructor.

Parameters:
domain - The name.
mBeanSession - The session.
Method Detail

loggerName

public String loggerName()
Description copied from interface: LogEnabled
Provide the logger name. The name should be unique for each component that is LogEnabled.

Specified by:
loggerName in interface LogEnabled
Returns:
A logger name. Never Null.

initialise

public void initialise()
Description copied from interface: DomainNode
Called from the service to initialise the node.

Specified by:
initialise in interface DomainNode

addStructuralListener

public void addStructuralListener(StructuralListener listener)
Description copied from interface: Structural
Add a listener. The listener will immediately receive add notifications for all existing children.

Specified by:
addStructuralListener in interface Structural
Parameters:
listener - The listener.

removeStructuralListener

public void removeStructuralListener(StructuralListener listener)
Description copied from interface: Structural
Remove a listener.

Specified by:
removeStructuralListener in interface Structural
Parameters:
listener - The listener.

iconForId

public ImageIcon iconForId(String iconId)
Return an icon tip for a given id. Part of the Iconic interface.

Specified by:
iconForId in interface Iconic
Parameters:
iconId - The icon id.
Returns:
The IconTip or null if it doesn't exist.

addIconListener

public void addIconListener(IconListener listener)
Add an icon listener. Part of the Iconic interface.

Specified by:
addIconListener in interface Iconic
Parameters:
listener - The listener.

removeIconListener

public void removeIconListener(IconListener listener)
Remove an icon listener. Part of the Iconic interface.

Specified by:
removeIconListener in interface Iconic
Parameters:
listener - The listener.

destroy

public void destroy()
Description copied from interface: Destroyable
destroy the client side object.

Specified by:
destroy in interface Destroyable

toString

public String toString()
Overrides:
toString in class Object