Annotation Type SelfNaming

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.

Method Constraints

Only one method can be marked with this annotation. The method on which the SelfNaming annotation is applied MUST fulfill all of the following criteria:

XML Representation

The following xml-fragment shows how to express this annotation in xml. The italic attribute of the 'self-naming' tag is used to identify the element to which this annotation is applied.
<beanlets xmlns=""
  <beanlet name="foo" type="com.acme.Foo">
    <mx:self-naming method="bar"/>

See Also:

Copyright © 2006-2012. All Rights Reserved.