Package oracle.as.scheduler.substitution
Class SubstitutorFactory
java.lang.Object
oracle.as.scheduler.substitution.SubstitutorFactory
Factor class for creating a
Substitutor-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SubstitutorCreate aSubstitutorusing theEssEnvSubstitutionHandlerstatic SubstitutorgetSubstitutor(RequestExecutionContext ctxt, RequestParameters params) Create the standardSubstitutor.static SubstitutorgetSubstitutorWithAltEnv(RequestExecutionContext ctxt, RequestParameters params, Map<String, String> altAppEnv) Create the standardSubstitutor.
-
Constructor Details
-
SubstitutorFactory
public SubstitutorFactory()
-
-
Method Details
-
getSubstitutor
public static Substitutor getSubstitutor(RequestExecutionContext ctxt, RequestParameters params) throws RequestNotFoundException, RuntimeServiceException, SubstitutionException Create the standardSubstitutor. This substitutor utilizes all the standard ESSSubstitutionHandlers.- Parameters:
ctxt- TheRequestExecutionContextfor the current request executionparams- TheRequestParametersfor the current request execution- Returns:
- The standard
Substitutor - Throws:
RequestNotFoundException- if the request could not be foundRuntimeServiceException- if an error occurred retrieving request informationSubstitutionException
-
getSubstitutorWithAltEnv
public static Substitutor getSubstitutorWithAltEnv(RequestExecutionContext ctxt, RequestParameters params, Map<String, String> altAppEnv) throws RequestNotFoundException, RuntimeServiceException, SubstitutionExceptionCreate the standardSubstitutor. This substitutor utilizes all the standard ESSSubstitutionHandlers, except the usual application environment handler ("APP_ENV") source is replaced byaltAppEnv.- Parameters:
ctxt- TheRequestExecutionContextfor the current request executionparams- TheRequestParametersfor the current request executionaltAppEnv- Alternate environment properties to be used in place of the standard ESS application environment.- Returns:
- The standard
Substitutor - Throws:
RequestNotFoundException- if the request could not be foundRuntimeServiceException- if an error occurred retrieving request informationSubstitutionException
-
getEssEnvSubstitutor
Create aSubstitutorusing theEssEnvSubstitutionHandler- Returns:
- The ESS environment
Substitutor
-