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 name,
- the group's code source (the location of the group's class), and
- a "marshalled" object that can contain object specific
initialization data.
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:
- the group's
ActivationGroupID
, and
- the group's initialization data (in a
java.rmi.MarshalledObject
)
- Since:
- JDK1.2
- See Also:
- ActivationGroup, ActivationGroupID
ActivationGroupDesc(Properties)
- Constructs a group descriptor that uses system default for
group implementation and code source.
ActivationGroupDesc(String, CodeSource, MarshalledObject)
- Specifies an alternate group implementation to be
used for the group.
getClassName()
- Returns the group's class name.
getCodeSource()
- Returns the group's code source.
getData()
- Returns the group's initialization data.
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
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.
getClassName
public String getClassName()
- Returns the group's class name.
- Returns:
- the group's class name
getCodeSource
public CodeSource getCodeSource()
- Returns the group's code source.
- Returns:
- the group's code source
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