java.rmi.activation
Class ActivationGroupDesc.CommandEnvironment

java.lang.Object
  extended by java.rmi.activation.ActivationGroupDesc.CommandEnvironment
All Implemented Interfaces:
Serializable
Enclosing class:
ActivationGroupDesc

public static class ActivationGroupDesc.CommandEnvironment
extends Object
implements Serializable

Contains the startup options for the ActivationGroup implementations. Allows to override system properties and specify other options for the implementation groups.

See Also:
Serialized Form

Constructor Summary
ActivationGroupDesc.CommandEnvironment(String commandPatch, String[] args)
          Create the new command environment.
 
Method Summary
 boolean equals(Object obj)
          Compare for content equality.
 String[] getCommandOptions()
          Get the additional command options.
 String getCommandPath()
          Get the path to the java executable.
 int hashCode()
          Get the hash code.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivationGroupDesc.CommandEnvironment

public ActivationGroupDesc.CommandEnvironment(String commandPatch,
                                              String[] args)
Create the new command environment.

Parameters:
commandPatch - the full path (and name) to the java executable of null for using the default executable.
args - extra options that will be used when creating the activation group. Null has the same effect as the empty list.
Method Detail

getCommandPath

public String getCommandPath()
Get the path to the java executable.

Returns:
the path to the java executable or null for using the default jre.

getCommandOptions

public String[] getCommandOptions()
Get the additional command options.

Returns:
the command options array, may be empty string

equals

public boolean equals(Object obj)
Compare for content equality.

Overrides:
equals in class Object
Parameters:
obj - the Object to compare to
Returns:
whether this Object is semantically equal to another
See Also:
Object.hashCode()

hashCode

public int hashCode()
Get the hash code.

Overrides:
hashCode in class Object
Returns:
the hash code for this Object
See Also:
Object.equals(Object), System.identityHashCode(Object)