org.norther.tammi.core.config
Class DefaultPropertyConfigurator
java.lang.Object
org.norther.tammi.core.base.Adaptee
org.norther.tammi.core.config.DefaultConfigurator
org.norther.tammi.core.config.AbstractStreamConfigurator
org.norther.tammi.core.config.DefaultPropertyConfigurator
- All Implemented Interfaces:
- Serializable, NotificationBroadcaster, NotificationEmitter, Manageable, MBeanDelegate, Configurator, PropertyConfigurator, StreamConfigurator
public class DefaultPropertyConfigurator
- extends AbstractStreamConfigurator
- implements PropertyConfigurator
A default implementation of PropertyConfigurator supporting multi-valued
properties in separate lines by default.
- Version:
- $Id: DefaultPropertyConfigurator.java,v 1.7 2009/09/28 15:08:44 cvsimp Exp $
- Author:
- Ilkka Priha
- See Also:
- Serialized Form
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 |
DefaultPropertyConfigurator
public DefaultPropertyConfigurator()
- Constructs a new configurator.
getSeparator
public String getSeparator()
- Description copied from interface:
PropertyConfigurator
- Gets the default separator(s) of multivalued properties.
- Specified by:
getSeparator
in interface PropertyConfigurator
- Returns:
- the separator(s) or null.
setSeparator
public void setSeparator(String separ)
- Description copied from interface:
PropertyConfigurator
- Sets the default separator(s) of multivalued properties. Null disables
multivalued properties, an empty string allows multiple values on
separate lines (default) and other strings specify characters interpreted
as separators between values.
It is recommended to control separators with the corresponding property
in the property file itself.
- Specified by:
setSeparator
in interface PropertyConfigurator
- Parameters:
separ
- the separator(s).
configure
public void configure(ObjectName target,
InputStream input,
String encoding)
throws ConfigurationException
- Description copied from interface:
StreamConfigurator
- Configures a registered MBean from an encoded configuration stream. If
encoding is not given, the platform default is applied.
- Specified by:
configure
in interface StreamConfigurator
- Parameters:
target
- the object name of the MBean.input
- the configuration stream.encoding
- the encoding of the configuration.
- Throws:
ConfigurationException
- on configuration errors
Copyright © 2004 The Norther Organization. All rights reserved.