|
||||||||||
| 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.converter.DefaultObjectConverter
org.norther.tammi.core.rt.DefaultVariableConverter
public class DefaultVariableConverter
A default implementation of VariableConverter.
| Field Summary | |
|---|---|
static String |
VARIABLE_MBEAN_TYPE
The variable MBean type. |
| 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 | |
|---|---|
DefaultVariableConverter()
Constructs a new converter. |
|
| Method Summary | |
|---|---|
protected Object |
getComponentInstance(String className,
Object object,
String pattern,
Object minValue,
Object maxValue)
Gets a variable MBean instance of the type specified by the object if it represents a character sequence. |
ObjectName |
getVariableRegistryName()
Gets the the variable registry of this converter. |
boolean |
isConversionSupported(String className)
Checks whether conversion of the specified class is supported. |
void |
postmanaged()
This method is called when the implementing adaptee has been managed either during post-registration of the corresponding adapter MBean or just after it is explicitly added to the adapter MBean during run-time. |
void |
setVariableRegistryName(ObjectName registry)
Sets the variable registry of this converter. |
protected String |
toComponentString(String className,
Object object,
String pattern)
Returns the variable type of a variable MBean or its attribute value specified by the pattern if available. |
void |
unmanaged()
This method is called when the implementing adaptee is unmanaged either during pre-deregistration of the corresponding adapter MBean or just before it is explicitly removed from the adapter MBean during run-time. |
| Methods inherited from class org.norther.tammi.core.converter.DefaultObjectConverter |
|---|
fromLocalizedObject, getFormatPattern, getInstance, getInstance, getInstance, getLocalizedPattern, getResourceFinderName, setResourceFinderName, toLocalizedObject, toString, toString, toString, toStrings, toStrings, toStrings |
| 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, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, 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.converter.ObjectConverter |
|---|
getFormatPattern, getInstance, getInstance, getInstance, getLocalizedPattern, getResourceFinderName, setResourceFinderName, toString, toString, toString, toStrings, toStrings, toStrings |
| Field Detail |
|---|
public static final String VARIABLE_MBEAN_TYPE
| Constructor Detail |
|---|
public DefaultVariableConverter()
| Method Detail |
|---|
public void postmanaged()
Manageable
postmanaged in interface Manageablepostmanaged in class DefaultObjectConverter
public void unmanaged()
throws Exception
Manageable
unmanaged in interface Manageableunmanaged in class DefaultObjectConverterException - if the adaptee refused to be unmanaged.public ObjectName getVariableRegistryName()
VariableConverter
getVariableRegistryName in interface VariableConverterpublic void setVariableRegistryName(ObjectName registry)
VariableConverter
setVariableRegistryName in interface VariableConverterregistry - the object name of the variable registry or a query.public boolean isConversionSupported(String className)
ObjectConverter
isConversionSupported in interface ObjectConverterisConversionSupported in class DefaultObjectConverterclassName - the class name.
protected Object getComponentInstance(String className,
Object object,
String pattern,
Object minValue,
Object maxValue)
throws ConversionException
getComponentInstance in class DefaultObjectConverterclassName - the name of the class.object - the source object.pattern - the conversion pattern.minValue - the minimum value.maxValue - the maximum value.
ConversionException - if conversion fails.
protected String toComponentString(String className,
Object object,
String pattern)
toComponentString in class DefaultObjectConverterclassName - the name of the class.object - the source object.pattern - the conversion pattern.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||