|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.base.Adaptee
org.norther.tammi.core.config.DefaultConfigurator
org.norther.tammi.core.config.AbstractStreamConfigurator
public abstract class AbstractStreamConfigurator
An abstract implementation of StreamConfigurator.
| 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 | |
|---|---|
AbstractStreamConfigurator()
Constructs a new configurator. |
|
| Method Summary | |
|---|---|
void |
configure(ObjectName target,
File file)
Configures a registered MBean from a configuration file by applying the ISO-8859-1 encoding. |
void |
configure(ObjectName target,
File file,
String encoding)
Configures a registered MBean from an encoded configuration file. |
void |
configure(ObjectName target,
InputStream input)
Configures a registered MBean from a configuration stream by applying the ISO-8859-1 encoding. |
void |
configure(ObjectName target,
String path)
Configures a registered MBean from a configuration file path by applying the ISO-8859-1 encoding. |
void |
configure(ObjectName target,
String path,
String encoding)
Configures a registered MBean from an encoded configuration file path. |
void |
configure(ObjectName target,
URL url)
Configures a registered MBean from a configuration URL by applying the ISO-8859-1 encoding. |
void |
configure(ObjectName target,
URL url,
String encoding)
Configures a registered MBean from an encoded configuration URL. |
String |
getConfigKey()
Gets the path finder key for resolving configuration paths. |
void |
setConfigKey(String key)
Sets the path finder key for resolving configuration paths. |
| Methods inherited from class org.norther.tammi.core.config.DefaultConfigurator |
|---|
configure, configure |
| 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 |
| Methods inherited from interface org.norther.tammi.core.config.StreamConfigurator |
|---|
configure |
| Methods inherited from interface org.norther.tammi.core.config.Configurator |
|---|
configure, configure |
| Constructor Detail |
|---|
public AbstractStreamConfigurator()
| Method Detail |
|---|
public String getConfigKey()
StreamConfigurator
getConfigKey in interface StreamConfiguratorpublic void setConfigKey(String key)
StreamConfigurator
setConfigKey in interface StreamConfiguratorkey - the path finder key.
public void configure(ObjectName target,
String path)
throws ConfigurationException
StreamConfigurator
configure in interface StreamConfiguratortarget - the object name of the MBean.path - the pathname of the configuration.
ConfigurationException - on configuration errors
public void configure(ObjectName target,
String path,
String encoding)
throws ConfigurationException
StreamConfigurator
configure in interface StreamConfiguratortarget - the object name of the MBean.path - the pathname of the configuration.encoding - the encoding of the configuration.
ConfigurationException - on configuration errors
public void configure(ObjectName target,
File file)
throws ConfigurationException
StreamConfigurator
configure in interface StreamConfiguratortarget - the object name of the MBean.file - the configuration file.
ConfigurationException - on configuration errors
public void configure(ObjectName target,
File file,
String encoding)
throws ConfigurationException
StreamConfigurator
configure in interface StreamConfiguratortarget - the object name of the MBean.file - the configuration file.encoding - the encoding of the configuration.
ConfigurationException - on configuration errors
public void configure(ObjectName target,
URL url)
throws ConfigurationException
StreamConfigurator
configure in interface StreamConfiguratortarget - the object name of the MBean.url - the configuration URL.
ConfigurationException - on configuration errors
public void configure(ObjectName target,
URL url,
String encoding)
throws ConfigurationException
StreamConfigurator
configure in interface StreamConfiguratortarget - the object name of the MBean.url - the configuration URL.encoding - the encoding of the configuration.
ConfigurationException - on configuration errors
public void configure(ObjectName target,
InputStream input)
throws ConfigurationException
StreamConfigurator
configure in interface StreamConfiguratortarget - the object name of the MBean.input - the configuration stream.
ConfigurationException - on configuration errors
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||