[
https://issues.jboss.org/browse/JBTM-998?page=com.atlassian.jira.plugin.s...
]
Paul Robinson updated JBTM-998:
-------------------------------
Description:
Currently following lifecycle method (and any other that is declared private) will never
be invoked:
{code}
@Compensate
private void cancelOrder()
{
...
}
{code}
This is because it is declared private and thus never seen by the reflection mechanism.
The improvement is to have private methods also considered when searching for lifecycle
methods. public methods will always be found, even if they are present in a super class.
However, private methods in the super class can not be found.
was:
Currently following lifecycle method (and any others) will never be invoked:
{code}
@Compensate
private void cancelOrder()
{
...
}
{code}
This is because it is declared private and thus never seen by the reflection mechanism.
The improvement is to have private methods also considered when searching for lifecycle
methods.
Allow participant lifecycle methods to be declared private
----------------------------------------------------------
Key: JBTM-998
URL:
https://issues.jboss.org/browse/JBTM-998
Project: JBoss Transaction Manager
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: TXFramework
Affects Versions: 5.0.0.M1
Reporter: Paul Robinson
Assignee: Paul Robinson
Fix For: 5.0.0.M2
Currently following lifecycle method (and any other that is declared private) will never
be invoked:
{code}
@Compensate
private void cancelOrder()
{
...
}
{code}
This is because it is declared private and thus never seen by the reflection mechanism.
The improvement is to have private methods also considered when searching for lifecycle
methods. public methods will always be found, even if they are present in a super class.
However, private methods in the super class can not be found.
--
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