[
https://issues.jboss.org/browse/JBTM-975?page=com.atlassian.jira.plugin.s...
]
Paul Robinson updated JBTM-975:
-------------------------------
Summary: Allow ServiceRequest methods to have own set of lifecycle methods (was:
Allow many ServiceRequest methods to have a single set of Lifecycle methods)
Description:
By default if only one type of LifecycleClass is specified, or if the default of the
current class is used, then the same LifecycleClass is registered for each @ServiceRequest
method.
Setting the attribute 'single' on @ParticipantService to 'false' allows a
different instance of the LifeCycle class to be used for each @ServiceRequest method.
{code}
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface ParticipantService
{
public boolean single() default true;
}
{code}
was:
By default if only one type of LifecycleClass is specified, or if the default of the
current class is used, then the same LifecycleClass is registered for each @ServiceRequest
method. However, a different instance of the class is registered for each @ServiceRequest
method.
By setting the attribute 'single' on @ParticipantService to 'true' allows
the same instance of the LifeCycle class to be used for all @ServiceRequest methods.
{code}
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface ParticipantService
{
public boolean single() default false;
}
{code}
Allow ServiceRequest methods to have own set of lifecycle methods
-----------------------------------------------------------------
Key: JBTM-975
URL:
https://issues.jboss.org/browse/JBTM-975
Project: JBoss Transaction Manager
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: TXFramework
Reporter: Paul Robinson
Assignee: Paul Robinson
Labels: TXFramework
Fix For: 5.0.0.Final
By default if only one type of LifecycleClass is specified, or if the default of the
current class is used, then the same LifecycleClass is registered for each @ServiceRequest
method.
Setting the attribute 'single' on @ParticipantService to 'false' allows a
different instance of the LifeCycle class to be used for each @ServiceRequest method.
{code}
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface ParticipantService
{
public boolean single() default true;
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira