Hi,
I have an issue resolving public and internal interfaces, and I am hoping AOP can help me. I've been through the documentation, but I'm hoping somebody with more experience in AOP can see a solution.
Basically, my question is this: Can I set the value of a method-level field with the value from the calling object? I am essentially looking for parameter functionality without the explicit parameter.
More specifically, I'm looking to do something like..
public interface PublicInterface
{
public void callMe(String name);
}
@Stateless
public class Target implements PublicInterface
{
public void callMe(String name)
{
CallerContext ctx = null;
// Use valid ctx here...
}
}
@Stateful
public class Caller implements PublicInterface
{
private CallerContext ctx;
private Target target;
public void callMe(String name)
{
target.callMe(name);
}
}
public interface PrivateInterface
{
public void callMe(String name, CallerContext);
}