|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.base.MBeanBroker
org.norther.tammi.core.config.MBeanConfig
public class MBeanConfig
Extends MBean broker by providing configuration support for MBeans.
| Field Summary |
|---|
| Fields inherited from class org.norther.tammi.core.base.MBeanBroker |
|---|
MBEAN_BROKER |
| Constructor Summary | |
|---|---|
MBeanConfig()
Constructs a new config. |
|
MBeanConfig(MBeanServer server)
Constructs a new config for a specific server. |
|
| Method Summary | |
|---|---|
void |
configure(ObjectName name,
String path)
Configures the specified MBean. |
void |
configure(ObjectName name,
String path,
String encoding)
Configures the specified MBean by applying the given encoding. |
void |
configure(String spec,
String path)
Configures the specified MBean. |
void |
configure(String spec,
String path,
String encoding)
Configures the specified MBean by applying the given encoding. |
Object |
convert(String className,
Object value)
Converts an object by applying an appropriate converter MBean. |
Object |
convert(String className,
Object value,
String pattern)
Converts an object with a pattern by applying an appropriate converter MBean. |
void |
copy(File source,
File target)
Copies a file. |
void |
copy(URL source,
File target)
Copies a URL. |
protected StreamConfigurator |
getConfigurator(String path)
Gets the referent of the configurator MBean for the specified path. |
void |
setConverter(String className,
ObjectName name)
Sets the converter MBean for the specified class name. |
void |
setConverter(String className,
String spec)
Sets the converter MBean for the specified class name. |
| Methods inherited from class org.norther.tammi.core.base.MBeanBroker |
|---|
adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, create, create, create, create, create, create, create, create, create, find, find, find, find, findName, findName, findName, findName, findNames, findNames, findNames, findNames, findNames, findNames, get, get, get, get, getAllDomains, getBroker, getClassName, getClassName, getDefaultDomain, getDomain, getDomainName, getDomainNames, getFactory, getInfo, getInfo, getLoader, getLog, getMBeanServer, getPackage, getPackages, getSystemProperty, instantiate, instantiate, instantiate, invoke, invoke, invoke, invoke, invoke, invoke, isDefined, isInstanceOf, isInstanceOf, isRegistered, isRegistered, load, register, register, register, register, set, set, set, set, set, set, setAlias, setAlias, setFactory, setFactory, setMBeanServer, setSystemProperty, toObjectName, toPackageName, unregister, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MBeanConfig()
public MBeanConfig(MBeanServer server)
server - the MBean server.| Method Detail |
|---|
public void setConverter(String className,
String spec)
className - the class name.spec - the MBean specification.
public void setConverter(String className,
ObjectName name)
className - the class name.name - the object name of the MBean.
public Object convert(String className,
Object value)
throws LogException
className - the class name of the result.value - the object to convert.
LogException - on errors.
public Object convert(String className,
Object value,
String pattern)
throws LogException
className - the class name of the result.value - the object to convert.pattern - the pattern to apply.
LogException - on errors.
public void configure(String spec,
String path)
throws LogException
spec - the MBean specification.path - the configuration path.
LogException - on errors.
public void configure(String spec,
String path,
String encoding)
throws LogException
spec - the MBean specification.path - the configuration path.encoding - the encoding.
LogException - on errors.
public void configure(ObjectName name,
String path)
throws LogException
name - the object name of the MBean.path - the configuration path.
LogException - on errors.
public void configure(ObjectName name,
String path,
String encoding)
throws LogException
name - the object name of the MBean.path - the configuration path.encoding - the encoding.
LogException - on errors.
public void copy(File source,
File target)
throws LogException
source - the source file.target - the target file.
LogException - on errors.
public void copy(URL source,
File target)
throws LogException
source - the source URL.target - the target file.
LogException - on errors.protected StreamConfigurator getConfigurator(String path)
path - the path to resolve.
UnsupportedOperationException - if not found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||