@Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) @Inherited public @interface MInclude
Use this annotation to include MAttribute or MOperation of another class that is aggregated by the MBean as attribute and operations of the MBean itself.
The bean (bean:name=example) will provide an attribute@MBean("bean:name=example") class MyBean {@MIncludeprivate Aggregate aggregate = new Aggregate(); } class Aggregate {@MAttributeprivate int count;@MOperationpublic void start() { } }
count and an operation start.| Modifier and Type | Optional Element and Description |
|---|---|
Class<?> |
type
If no type is declared on a
MInclude annotation the type of the field or the return type of the method the annotation is declared on
will be used to search for more annotations to include to the managed bean. |
public abstract Class<?> type
MInclude annotation the type of the field or the return type of the method the annotation is declared on
will be used to search for more annotations to include to the managed bean.
However, if the real type of the field or return type of the method is not the declared type but a sub type and the annotations are declared
on the sub type instead of the declared type then use this annotation attribute to specify the real type.Copyright © 2016 AXON IVY AG. All rights reserved.