mx4j/src/tools/mx4j/tools/remote SubjectInvoker.java,1.1,1.2
Simone Bordet <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mx4j/mx4j/src/tools/mx4j/tools/remote
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11144/src/tools/mx4j/tools/remote
Modified Files:
SubjectInvoker.java
Log Message:
Passing the environment to the subject invoker, so that it can configure itself
Index: SubjectInvoker.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/tools/mx4j/tools/remote/SubjectInvoker.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** SubjectInvoker.java 10 Aug 2004 09:03:54 -0000 1.1
--- SubjectInvoker.java 27 Aug 2004 22:25:33 -0000 1.2
***************
*** 14,17 ****
--- 14,18 ----
import java.security.AccessControlContext;
import java.security.PrivilegedExceptionAction;
+ import java.util.Map;
import javax.management.remote.JMXServerErrorException;
import javax.security.auth.Subject;
***************
*** 28,37 ****
private final Subject subject;
private final AccessControlContext context;
! protected SubjectInvoker(Object target, Subject subject, AccessControlContext context)
{
this.target = target;
this.subject = subject;
this.context = context;
}
--- 29,40 ----
private final Subject subject;
private final AccessControlContext context;
+ private Map environment;
! protected SubjectInvoker(Object target, Subject subject, AccessControlContext context, Map environment)
{
this.target = target;
this.subject = subject;
this.context = context;
+ this.environment = environment;
}
***************
*** 67,71 ****
protected Object subjectInvoke(final Object proxy, final Method method, final Object[] args, Subject delegate) throws Exception
{
! return MX4JRemoteUtils.subjectInvoke(subject, delegate, context, new PrivilegedExceptionAction()
{
public Object run() throws Exception
--- 70,74 ----
protected Object subjectInvoke(final Object proxy, final Method method, final Object[] args, Subject delegate) throws Exception
{
! return MX4JRemoteUtils.subjectInvoke(subject, delegate, context, environment, new PrivilegedExceptionAction()
{
public Object run() throws Exception
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click