[ http://mc4j.org/jira/browse/STS-201?page=all ]
Nic Holbrook updated STS-201:
-----------------------------
Attachment: BeforeAfterMethodInterceptor.java
The updated file is attached for your review. Here's the diff file against the
current trunk.
135a136,140
> if (!m.isAccessible())
> {
> log.debug("Setting method " + m.getName() + " as
> accessible.");
> m.setAccessible(true);
> }
184c189
< Method[] methods = beanClass.getMethods();
---
> Method[] methods = beanClass.getDeclaredMethods();
> Make it possible for @Before and @After annotations to execute non-public
> methods
> ---------------------------------------------------------------------------------
>
> Key: STS-201
> URL: http://mc4j.org/jira/browse/STS-201
> Project: Stripes
> Type: Improvement
> Components: ActionBean Dispatching
> Versions: Release 1.3.1
> Reporter: Nic Holbrook
> Assignee: Tim Fennell
> Priority: Minor
> Attachments: BeforeAfterMethodInterceptor.java
>
> Changed getMethod() call which returns only public methods on the class to
> getDeclaredMethods to return all methods.
> Added a check inside invoke method to check to see if the method is
> accessible and if not, setAccessible(true) then invoke the method.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development