HomeIndex > GBeans > GBean Annotations

Definition of annotations streamlining the definition of GBeanInfos.

All annotations are in the org.apache.geronimo.gbean.annotation package.

@GBean optional annotation defining the name and j2eeType of a GBean. If this annotation is not specified, then the default name is assumed to be
the class (simple) name and the default j2eeType is GBean.
@Priority optionalannotation defining the priority of a GBean.
@ParamSpecial annotation defining a GBean special attribute to be injected.
@ParamAttribute annotation defining the GBean attribute to be injected.
@ParamReference annotation defining the GBean reference to be injected.
@Persistent annotation for setter methods turning the corresponding GBean attributes into persistent attributes.
@Reference annotation for setter methods turning the corresponding GBean attribute into a GBean reference.

Note that at most one constructor must be annotated with @ParamSpecial, @ParamAttribute or @ParamReference.

Examples