org.norther.tammi.core.config
Class DefaultConfigurator

java.lang.Object
  extended by org.norther.tammi.core.base.Adaptee
      extended by org.norther.tammi.core.config.DefaultConfigurator
All Implemented Interfaces:
Serializable, NotificationBroadcaster, NotificationEmitter, Manageable, MBeanDelegate, Configurator
Direct Known Subclasses:
AbstractStreamConfigurator

public class DefaultConfigurator
extends Adaptee
implements Configurator

A default implementation of Configurator.

Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.norther.tammi.core.base.Adaptee
ADAPTEE_NOTIF_DESCRIPTION, ADAPTEE_NOTIFICATIONS
 
Fields inherited from interface org.norther.tammi.core.base.MBeanDelegate
ARRAY_TYPE, OBJECT_TYPE, PRIMITIVE_TYPE, STRING_TYPE
 
Constructor Summary
DefaultConfigurator()
          Constructs a new configurator.
 
Method Summary
 void configure(ObjectName target, Configuration config)
          Configures a registered MBean from a configuration.
 void configure(ObjectName target, Properties props)
          Configures a registered MBean from properties.
 
Methods inherited from class org.norther.tammi.core.base.Adaptee
addAdaptee, addNotificationListener, getAttributeSupport, getBroker, getCanonicalName, getDomain, getFactory, getLoader, getLog, getLog, getMBean, getMBeanServer, getNotificationInfo, getObjectName, getRegistrationTime, getSequenceNumber, hasListeners, isRegistered, postmanaged, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unmanaged, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConfigurator

public DefaultConfigurator()
Constructs a new configurator.

Method Detail

configure

public void configure(ObjectName target,
                      Properties props)
               throws ConfigurationException
Description copied from interface: Configurator
Configures a registered MBean from properties.

Specified by:
configure in interface Configurator
Parameters:
target - the object name of the MBean.
props - the properties.
Throws:
ConfigurationException - on configuration errors.

configure

public void configure(ObjectName target,
                      Configuration config)
               throws ConfigurationException
Description copied from interface: Configurator
Configures a registered MBean from a configuration.

Specified by:
configure in interface Configurator
Parameters:
target - the object name of the MBean.
config - the configuration.
Throws:
ConfigurationException - on configuration errors.


Copyright © 2004 The Norther Organization. All rights reserved.