diff options
Diffstat (limited to 'libjava/classpath/gnu/java/rmi/activation/DefaultActivationGroup.java')
-rw-r--r-- | libjava/classpath/gnu/java/rmi/activation/DefaultActivationGroup.java | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/libjava/classpath/gnu/java/rmi/activation/DefaultActivationGroup.java b/libjava/classpath/gnu/java/rmi/activation/DefaultActivationGroup.java index 3a654f2461b..526d2ef40de 100644 --- a/libjava/classpath/gnu/java/rmi/activation/DefaultActivationGroup.java +++ b/libjava/classpath/gnu/java/rmi/activation/DefaultActivationGroup.java @@ -55,9 +55,9 @@ import java.rmi.activation.UnknownObjectException; /** * The default activation group class. This activation group assumes that * all classes are accessible via current thread context class loader. - * The remote class loading is not supported for security reasons. The + * The remote class loading is not supported for security reasons. The * activation always occurs in the current jre. - * + * * @author Audrius Meskauskas (audriusa@Bioinformatics.org) */ public class DefaultActivationGroup @@ -67,7 +67,7 @@ public class DefaultActivationGroup * Use the serialVersionUID for interoperability. */ private static final long serialVersionUID = 1; - + /** * Used during the group creation (required constructor). */ @@ -76,23 +76,23 @@ public class DefaultActivationGroup ActivationID.class, MarshalledObject.class }; - - + + /** * Create the new default activation group. - * + * * @param id the group activation id. * @param data may contain the group initialization data (unused and can be * null) * @throws RemoteException if the super constructor does - */ + */ public DefaultActivationGroup(ActivationGroupID id, MarshalledObject data) throws RemoteException { super(id); } - - + + /** * May be overridden and used as a hook. This method is called each time * the new object is instantiated. @@ -108,14 +108,14 @@ public class DefaultActivationGroup * information, stored in the passed descriptor. The method expects the object * class to have the two parameter constructor, the first parameter being the * {@link ActivationID} and the second the {@link MarshalledObject}. - * + * * @param id the object activation id * @param desc the activation descriptor, providing the information, necessary * to create and activate the object * @return the marshalled object, containing the exported stub of the created * object * @throws ActivationException if the activation fails due any reason - */ + */ public MarshalledObject newInstance(ActivationID id, ActivationDesc desc) throws ActivationException, RemoteException { @@ -123,7 +123,7 @@ public class DefaultActivationGroup { if (ActivationSystemTransient.debug) System.out.println("Instantiating "+desc.getClassName()); - + Remote object; Class objectClass; @@ -132,19 +132,19 @@ public class DefaultActivationGroup Constructor constructor = objectClass.getConstructor(cConstructorTypes); object = (Remote) constructor.newInstance( new Object[] { id, desc.getData() }); - + // Make the object accessible and create the stub. ActivatableServerRef ref = UnicastServer.getActivatableRef(id); Remote stub = ref.exportObject(object); - + MarshalledObject marsh = new MarshalledObject(stub); - + // Notify the activation monitor. activeObject(id, marsh); - + // Make call to the hook that may be overridden. activeObject(id, stub); - + return marsh; } catch (Exception e) |