-
Feature Request
-
Resolution: Obsolete
-
Minor
-
None
This class level annotation allows the class which is the target of lifecycle handler callbacks to be specified.
@Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) public @interface ParticipantService { public Class lifecycleClass() default Default.class; }
This field may be overridden in the ServiceRequest annotation itself. If the value of this field is Default.class then the ParticipantService class is used as the default class to resolve POJO lifecycle methods.
@Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD, ElementType.TYPE}) public @interface ServiceRequest { public Class lifecycleClass() default Default.class; }
If the lifecycleClass attribute is not specified in either place, the class containing the @ServiceInvocation is assumed to also contain the associated Lifecycle Handler methods.