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.


Constructor Index

 o SCREnvironmentFactory()
Constructs a new SCREnvironmentFactory.

Method Index

 o create(SCRClient, SCRComponentDescriptor)
Creates a scripting environment.
 o queryRegisteredComponents()
Queries registered scripting components.

Constructors

 o SCREnvironmentFactory
 public SCREnvironmentFactory()
Constructs a new SCREnvironmentFactory.

Methods

 o 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.
 o 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