Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

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 Summary
 ActivationGroupDesc(Properties properties)
Constructs a group descriptor that uses system default for group implementation and code source.
 ActivationGroupDesc(String className, CodeSource source, MarshalledObject data)
Specifies an alternate group implementation to be used for the group.
 

Method Summary
String  getClassName()
Returns the group's class name.
CodeSource  getCodeSource()
Returns the group's code source.
MarshalledObject  getData()
Returns the group's initialization data.
 
Methods inherited from class java.lang.Object
 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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:
IllegalArgumentException - if properties is null
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 (could contain properties, for example)
Method Detail

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

Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.