mx4j.tools.config
Class ConfigurationLoader

java.lang.Object
  extended by mx4j.tools.config.ConfigurationLoader
All Implemented Interfaces:
javax.management.MBeanRegistration, ConfigurationLoaderMBean

public class ConfigurationLoader
extends java.lang.Object
implements ConfigurationLoaderMBean, javax.management.MBeanRegistration

Version:
$Revision: 1.3 $

Constructor Summary
ConfigurationLoader()
           
ConfigurationLoader(ConfigurationBuilder builder)
           
ConfigurationLoader(javax.management.MBeanServer server)
           
ConfigurationLoader(javax.management.MBeanServer server, ConfigurationBuilder builder)
           
 
Method Summary
 void postDeregister()
          Callback called just after the MBean has been successfully unregistered.
 void postRegister(java.lang.Boolean registered)
          Callback called just after the MBean has been registered (successfully or not).
 void preDeregister()
          Callback called just before MBean unregistration from the MBeanServer.
 javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name)
          Callback called just before MBean registration in the MBeanServer.
 void shutdown()
           
 void startup(java.io.Reader source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationLoader

public ConfigurationLoader()

ConfigurationLoader

public ConfigurationLoader(ConfigurationBuilder builder)

ConfigurationLoader

public ConfigurationLoader(javax.management.MBeanServer server)

ConfigurationLoader

public ConfigurationLoader(javax.management.MBeanServer server,
                           ConfigurationBuilder builder)
Method Detail

preRegister

public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
                                               javax.management.ObjectName name)
                                        throws java.lang.Exception
Description copied from interface: javax.management.MBeanRegistration
Callback called just before MBean registration in the MBeanServer. Any exception thrown by this method will cause the MBean registration to abort.

Specified by:
preRegister in interface javax.management.MBeanRegistration
Parameters:
server - The MBeanServer on which the MBean will be registered.
name - The ObjectName of the MBean.
Returns:
The ObjectName of the registered MBean, must not be null
Throws:
java.lang.Exception - Any possible exception generated by this method will be caught by the MBeanServer and re-thrown as an MBeanRegistrationException to the client.

postRegister

public void postRegister(java.lang.Boolean registered)
Description copied from interface: javax.management.MBeanRegistration
Callback called just after the MBean has been registered (successfully or not).

Specified by:
postRegister in interface javax.management.MBeanRegistration
Parameters:
registered - True if the registration was successful, false otherwise.

preDeregister

public void preDeregister()
                   throws java.lang.Exception
Description copied from interface: javax.management.MBeanRegistration
Callback called just before MBean unregistration from the MBeanServer. Any exception thrown by this method will cause the MBean unregistration to abort.

Specified by:
preDeregister in interface javax.management.MBeanRegistration
Throws:
java.lang.Exception - Any possible exception generated by this method will be caught by the MBeanServer and re-thrown as an MBeanRegistrationException to the client.

postDeregister

public void postDeregister()
Description copied from interface: javax.management.MBeanRegistration
Callback called just after the MBean has been successfully unregistered.

Specified by:
postDeregister in interface javax.management.MBeanRegistration

startup

public void startup(java.io.Reader source)
             throws ConfigurationException
Specified by:
startup in interface ConfigurationLoaderMBean
Throws:
ConfigurationException

shutdown

public void shutdown()
              throws ConfigurationException
Specified by:
shutdown in interface ConfigurationLoaderMBean
Throws:
ConfigurationException


Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.