|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=METHOD) public @interface SelfNaming
Methods marked with this annotation generate the ObjectName for the
underlying beanlet instance. An alternative for this annotation is the
NamingStrategy interface.
SelfNaming annotation is applied MUST fulfill all of the following
criteria:
javax.management.ObjectName.
javax.management.MalformedObjectNameException
SelfNaming is applied MAY be
public, protected, package private or private.
static.
final.
<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:self-naming method="bar"/>
</beanlet>
</beanlets>
NamingStrategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||