All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.beans.script.SCREnvironmentFactory
java.lang.Object
|
+----com.ibm.beans.script.SCREnvironmentFactory
- public class SCREnvironmentFactory
- extends Object
The SCREnvironmentFactory class is used to instantiate the scripting environment.
The SCREnvironmentFactory class is not serializable.
-
SCREnvironmentFactory()
- Constructs a new SCREnvironmentFactory.
-
create(SCRClient, SCRComponentDescriptor)
- Creates a scripting environment.
-
queryRegisteredComponents()
-
Queries registered scripting components.
SCREnvironmentFactory
public SCREnvironmentFactory()
- Constructs a new SCREnvironmentFactory.
queryRegisteredComponents
public synchronized SCRComponentDescriptor[] queryRegisteredComponents()
- Queries registered scripting components.
A scripting component is an object that represents a particular
scripting language such as JavaScript.
The scripting component descriptor
describes the particular language that can be used for scripting.
The Java program that calls this function builds a list of the
registered components and allows the end user to select one to create
the scripting environment.
- Returns:
- An array of the descriptions of each registered
scripting component.
create
public SCREnvironment create(SCRClient scrClient,
SCRComponentDescriptor newDescriptor) throws SCRComponentNotFoundException
- Creates a scripting environment.
An SCRComponentDescriptor object is passed
as an argument to the create() method.
- Parameters:
- scrClient - The scripting client object requesting the creation.
- newDescriptor -
A descriptor returned from the
SCREnvironmentFactory.queryRegisteredComponents() method.
- Throws: SCRComponentNotFoundException
- Thrown when there is no Scripting
Component that matches the passed SCRComponentDescriptor.
- See Also:
- queryRegisteredComponents
All Packages Class Hierarchy This Package Previous Next Index