public class DefaultConfigurationImpl extends java.lang.Object implements Configuration
Constructor and Description |
---|
DefaultConfigurationImpl(java.lang.String serviceID,
java.lang.String factoryID,
javax.management.AttributeList attributes,
NotifierService notifierService,
JMXService jmxService,
java.util.Set<SessionDTO> sessionDTOs)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttributesChangedListener(AttributesChangedListener listener)
Add a listener that is notified when the Attributes are changed on the
configuration.
|
java.lang.Object |
getAttribute(java.lang.String attribute) |
java.lang.String[] |
getAttributeNames()
Get the names of all the DynamicMBean Properties.
|
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Used for persistence.
|
javax.management.AttributeList |
getAttributes(java.lang.String[] attributes) |
java.lang.String |
getFactoryID()
Get the id of the factory that registered the configuration.
|
javax.management.MBeanInfo |
getMBeanInfo() |
java.lang.String |
getServiceID()
Get the unique name of the configuration.
|
RifidiService |
getTarget() |
java.lang.Object |
invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature) |
void |
removeAttributesChangedListener(AttributesChangedListener listener)
Remote a listener that is notified of Attribute changes on this
configuration.
|
void |
serviceChanged(ServiceEvent arg0) |
void |
setAttribute(javax.management.Attribute attribute) |
javax.management.AttributeList |
setAttributes(javax.management.AttributeList attributes) |
void |
setContext(BundleContext context) |
void |
setTarget(RifidiService target)
Set the service that this configuration wraps
|
java.lang.String |
toString() |
public DefaultConfigurationImpl(java.lang.String serviceID, java.lang.String factoryID, javax.management.AttributeList attributes, NotifierService notifierService, JMXService jmxService, java.util.Set<SessionDTO> sessionDTOs)
context
- serviceID
- factoryID
- attributes
- sessionDTOs
- public void setContext(BundleContext context)
context
- the context to setpublic java.lang.String getServiceID()
Configuration
getServiceID
in interface Configuration
public void setTarget(RifidiService target)
target
- the target to setpublic RifidiService getTarget()
public java.lang.String getFactoryID()
Configuration
getFactoryID
in interface Configuration
public java.lang.Object getAttribute(java.lang.String attribute) throws javax.management.AttributeNotFoundException, javax.management.MBeanException, javax.management.ReflectionException
getAttribute
in interface javax.management.DynamicMBean
javax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
public java.lang.String[] getAttributeNames()
Configuration
getAttributeNames
in interface Configuration
public javax.management.AttributeList getAttributes(java.lang.String[] attributes)
getAttributes
in interface javax.management.DynamicMBean
public javax.management.MBeanInfo getMBeanInfo()
getMBeanInfo
in interface javax.management.DynamicMBean
public java.lang.Object invoke(java.lang.String actionName, java.lang.Object[] params, java.lang.String[] signature) throws javax.management.MBeanException, javax.management.ReflectionException
invoke
in interface javax.management.DynamicMBean
javax.management.MBeanException
javax.management.ReflectionException
public void setAttribute(javax.management.Attribute attribute) throws javax.management.AttributeNotFoundException, javax.management.InvalidAttributeValueException, javax.management.MBeanException, javax.management.ReflectionException
setAttribute
in interface javax.management.DynamicMBean
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException
public javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
setAttributes
in interface javax.management.DynamicMBean
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Configuration
getAttributes
in interface Configuration
public void addAttributesChangedListener(AttributesChangedListener listener)
Configuration
addAttributesChangedListener
in interface Configuration
public void removeAttributesChangedListener(AttributesChangedListener listener)
Configuration
removeAttributesChangedListener
in interface Configuration
public void serviceChanged(ServiceEvent arg0)
public java.lang.String toString()
toString
in class java.lang.Object