mx4j/src/core/javax/management/remote/rmi RMIConnectionImpl.java,1.7,1.8
Simone Bordet <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mx4j/mx4j/src/core/javax/management/remote/rmi
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10214/src/core/javax/management/remote/rmi
Modified Files:
RMIConnectionImpl.java
Log Message:
Passing the environment to the subject invoker, so that it can configure itself
Index: RMIConnectionImpl.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/remote/rmi/RMIConnectionImpl.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** RMIConnectionImpl.java 24 Feb 2004 14:01:31 -0000 1.7
--- RMIConnectionImpl.java 27 Aug 2004 22:20:14 -0000 1.8
***************
*** 12,19 ****
import java.rmi.MarshalledObject;
import java.rmi.server.Unreferenced;
import java.util.Map;
import java.util.Set;
- import java.security.AccessControlContext;
-
import javax.management.AttributeList;
import javax.management.AttributeNotFoundException;
--- 12,18 ----
import java.rmi.MarshalledObject;
import java.rmi.server.Unreferenced;
+ import java.security.AccessControlContext;
import java.util.Map;
import java.util.Set;
import javax.management.AttributeList;
import javax.management.AttributeNotFoundException;
***************
*** 90,94 ****
// TODO: here we hardcode the server invocation chain. Maybe worth to remove this hardcoding ?
RMIConnection serverInvoker = new RMIConnectionInvoker(server.getMBeanServer(), defaultClassLoader, environment);
! chain = RMIConnectionSubjectInvoker.newInstance(serverInvoker, subject, context);
}
return chain;
--- 89,93 ----
// TODO: here we hardcode the server invocation chain. Maybe worth to remove this hardcoding ?
RMIConnection serverInvoker = new RMIConnectionInvoker(server.getMBeanServer(), defaultClassLoader, environment);
! chain = RMIConnectionSubjectInvoker.newInstance(serverInvoker, subject, context, environment);
}
return chain;
***************
*** 107,115 ****
public ObjectInstance createMBean(String className, ObjectName name, Subject delegationSubject)
throws ReflectionException,
! InstanceAlreadyExistsException,
! MBeanRegistrationException,
! MBeanException,
! NotCompliantMBeanException,
! IOException
{
return getChain().createMBean(className, name, delegationSubject);
--- 106,114 ----
public ObjectInstance createMBean(String className, ObjectName name, Subject delegationSubject)
throws ReflectionException,
! InstanceAlreadyExistsException,
! MBeanRegistrationException,
! MBeanException,
! NotCompliantMBeanException,
! IOException
{
return getChain().createMBean(className, name, delegationSubject);
***************
*** 118,127 ****
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Subject delegationSubject)
throws ReflectionException,
! InstanceAlreadyExistsException,
! MBeanRegistrationException,
! MBeanException,
! NotCompliantMBeanException,
! InstanceNotFoundException,
! IOException
{
return getChain().createMBean(className, name, loaderName, delegationSubject);
--- 117,126 ----
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Subject delegationSubject)
throws ReflectionException,
! InstanceAlreadyExistsException,
! MBeanRegistrationException,
! MBeanException,
! NotCompliantMBeanException,
! InstanceNotFoundException,
! IOException
{
return getChain().createMBean(className, name, loaderName, delegationSubject);
***************
*** 130,150 ****
public ObjectInstance createMBean(String className, ObjectName name, MarshalledObject params, String[] signature, Subject delegationSubject)
throws ReflectionException,
! InstanceAlreadyExistsException,
! MBeanRegistrationException,
! MBeanException,
! NotCompliantMBeanException,
! IOException
{
! return getChain().createMBean(className, name, params,signature, delegationSubject);
}
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, MarshalledObject params, String[] signature, Subject delegationSubject)
throws ReflectionException,
! InstanceAlreadyExistsException,
! MBeanRegistrationException,
! MBeanException,
! NotCompliantMBeanException,
! InstanceNotFoundException,
! IOException
{
return getChain().createMBean(className, name, loaderName, params, signature, delegationSubject);
--- 129,149 ----
public ObjectInstance createMBean(String className, ObjectName name, MarshalledObject params, String[] signature, Subject delegationSubject)
throws ReflectionException,
! InstanceAlreadyExistsException,
! MBeanRegistrationException,
! MBeanException,
! NotCompliantMBeanException,
! IOException
{
! return getChain().createMBean(className, name, params, signature, delegationSubject);
}
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, MarshalledObject params, String[] signature, Subject delegationSubject)
throws ReflectionException,
! InstanceAlreadyExistsException,
! MBeanRegistrationException,
! MBeanException,
! NotCompliantMBeanException,
! InstanceNotFoundException,
! IOException
{
return getChain().createMBean(className, name, loaderName, params, signature, delegationSubject);
***************
*** 183,190 ****
public Object getAttribute(ObjectName name, String attribute, Subject delegate)
throws MBeanException,
! AttributeNotFoundException,
! InstanceNotFoundException,
! ReflectionException,
! IOException
{
return getChain().getAttribute(name, attribute, delegate);
--- 182,189 ----
public Object getAttribute(ObjectName name, String attribute, Subject delegate)
throws MBeanException,
! AttributeNotFoundException,
! InstanceNotFoundException,
! ReflectionException,
! IOException
{
return getChain().getAttribute(name, attribute, delegate);
***************
*** 199,207 ****
public void setAttribute(ObjectName name, MarshalledObject attribute, Subject delegationSubject)
throws InstanceNotFoundException,
! AttributeNotFoundException,
! InvalidAttributeValueException,
! MBeanException,
! ReflectionException,
! IOException
{
getChain().setAttribute(name, attribute, delegationSubject);
--- 198,206 ----
public void setAttribute(ObjectName name, MarshalledObject attribute, Subject delegationSubject)
throws InstanceNotFoundException,
! AttributeNotFoundException,
! InvalidAttributeValueException,
! MBeanException,
! ReflectionException,
! IOException
{
getChain().setAttribute(name, attribute, delegationSubject);
***************
*** 210,215 ****
public AttributeList setAttributes(ObjectName name, MarshalledObject attributes, Subject delegationSubject)
throws InstanceNotFoundException,
! ReflectionException,
! IOException
{
return getChain().setAttributes(name, attributes, delegationSubject);
--- 209,214 ----
public AttributeList setAttributes(ObjectName name, MarshalledObject attributes, Subject delegationSubject)
throws InstanceNotFoundException,
! ReflectionException,
! IOException
{
return getChain().setAttributes(name, attributes, delegationSubject);
***************
*** 218,224 ****
public Object invoke(ObjectName name, String operationName, MarshalledObject params, String[] signature, Subject delegationSubject)
throws InstanceNotFoundException,
! MBeanException,
! ReflectionException,
! IOException
{
return getChain().invoke(name, operationName, params, signature, delegationSubject);
--- 217,223 ----
public Object invoke(ObjectName name, String operationName, MarshalledObject params, String[] signature, Subject delegationSubject)
throws InstanceNotFoundException,
! MBeanException,
! ReflectionException,
! IOException
{
return getChain().invoke(name, operationName, params, signature, delegationSubject);
-------------------------------------------------------
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