org.beanlet.management
Annotation Type Manageable


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface Manageable

Mark a beanlet with this annotation to expose it to JMX.

XML Representation

The following xml-fragment shows how to express this annotation in xml. The 'manageable' tag does not specify any element attribute, which means that this tag is applied to the beanlet's class. The attributes can be specified optionally if the annotation specifies a default value for the particular annotation methods.
<beanlets xmlns="http://beanlet.org/schema/beanlet"
          xmlns:mx="http://beanlet.org/schema/management"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://beanlet.org/schema/beanlet http://beanlet.org/schema/beanlet/beanlet_1_0.xsd
                               http://beanlet.org/schema/management http://beanlet.org/schema/management/beanlet_management_1_0.xsd">
  <beanlet name="foo" type="com.acme.Foo">
    <mx:manageable naming-strategy="org.beanlet.management.IdentityNamingStrategy" registration-policy="FAIL_ON_EXISTING" exposed="ATTRIBUTE,OPERATION"/>
  </beanlet>
</beanlets>


Optional Element Summary
 ManageableElementType[] exposed
          Specifies which element types must be exposed.
 Class<? extends NamingStrategy> namingStrategy
          Specifies a NamingStrategy implementation that is responsible for generating the MBean's ObjectName.
 RegistrationPolicy registrationPolicy
          Specifies which registration policy must be applied.
 

namingStrategy

public abstract Class<? extends NamingStrategy> namingStrategy
Specifies a NamingStrategy implementation that is responsible for generating the MBean's ObjectName. The specified class must have a zero-args constructor.

Default:
org.beanlet.management.IdentityNamingStrategy.class

registrationPolicy

public abstract RegistrationPolicy registrationPolicy
Specifies which registration policy must be applied.

Default:
org.beanlet.management.RegistrationPolicy.FAIL_ON_EXISTING

exposed

public abstract ManageableElementType[] exposed
Specifies which element types must be exposed.

Default:
{org.beanlet.management.ManageableElementType.ATTRIBUTE, org.beanlet.management.ManageableElementType.OPERATION}


Copyright © 2006-2012. All Rights Reserved.