All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.rmi.activation.ActivationGroupDesc

java.lang.Object
    |
    +----java.rmi.activation.ActivationGroupDesc

public final class ActivationGroupDesc
extends Object
implements Serializable
An activation group descriptor contains the information necessary to create/recreate an activation group in which to activate objects. Such a descriptor contains:

The group's class must be a concrete subclass of ActivationGroup. A subclass of ActivationGroup is created/recreated via the ActivationGroup.createGroup static method that invokes a special constructor that takes two arguments:

Since:
JDK1.2
See Also:
ActivationGroup, ActivationGroupID

Constructor Index

 o ActivationGroupDesc(Properties)
Constructs a group descriptor that uses system default for group implementation and code source.
 o ActivationGroupDesc(String, CodeSource, MarshalledObject)
Specifies an alternate group implementation to be used for the group.

Method Index

 o getClassName()
Returns the group's class name.
 o getCodeSource()
Returns the group's code source.
 o getData()
Returns the group's initialization data.

Constructors

 o ActivationGroupDesc
public ActivationGroupDesc(Properties properties) throws IOException
Constructs a group descriptor that uses system default for group implementation and code source. Properties specify environment. The additional property java.rmi.activation.security.class and java.rmi.activation.security.codebase specifies (respectively) the class name of the security manager, and the codebase, the location, of the class. If former property is not set, then the java.rmi.RMISecurityManager will be used as the security manager for group.

Parameters:
properties - the set of properties to set when the group is recreated
Throws: NullPointerException
if properties is null
Throws: IOException
if a MarshalledObject could not be created from the properties
 o ActivationGroupDesc
public ActivationGroupDesc(String className,
                           CodeSource source,
                           MarshalledObject data)
Specifies an alternate group implementation to be used for the group.

Parameters:
className - the group's fully package qualified className
source - the CodeSource from where to load the group's class
data - the group's initialization data contained in marshalled form.

Methods

 o getClassName
public String getClassName()
Returns the group's class name.

Returns:
the group's class name
 o getCodeSource
public CodeSource getCodeSource()
Returns the group's code source.

Returns:
the group's code source
 o getData
public MarshalledObject getData()
Returns the group's initialization data.

Returns:
the group's initialization data

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature