Package oracle.as.scheduler.substitution
Class CcwSubstitutionHandler
java.lang.Object
oracle.as.scheduler.substitution.CcwSubstitutionHandler
- All Implemented Interfaces:
SubstitutionHandler
Substitution handler for cross component wiring.
This handler has two sources. It first checks the ESS runtime store. If that does not succeed it checks the CCW service table APIs.
This handler is a specialty handler that should not be included with the default substitution handlers. Its lifetime should be very short because it uses an existing runtime service connection.
-
Constructor Summary
ConstructorsConstructorDescriptionCcwSubstitutionHandler(String application, RuntimeServiceHandle rsh, oracle.as.scheduler.runtime.RuntimeStore runtimeStore) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Used to release any resources the handler may have claimed, such as open files or connections.booleancontainsKey(String name) Reports whether the handler can return a value to substitute forname.Gets the value which will be used to replace the token.getId()An identifier that can be used to request that a specific handler (or set of handlers) should be used for a substitution.
-
Constructor Details
-
CcwSubstitutionHandler
public CcwSubstitutionHandler(String application, RuntimeServiceHandle rsh, oracle.as.scheduler.runtime.RuntimeStore runtimeStore) Constructor.- Parameters:
application-rsh-runtimeStore-
-
-
Method Details
-
getId
Description copied from interface:SubstitutionHandlerAn identifier that can be used to request that a specific handler (or set of handlers) should be used for a substitution.The returned ID should adhere to basic identifier rules, e.g., it should consist of letters, numbers, and underscores only. A
null, blank, or invalid ID may result in the handler being skipped.The method
getId()may be called at any time.- Specified by:
getIdin interfaceSubstitutionHandler- Returns:
- Handler identifier
-
containsKey
Description copied from interface:SubstitutionHandlerReports whether the handler can return a value to substitute forname. IfcontainsKeyreturnsfalse, then this handler will not be used for substitutingname.- Specified by:
containsKeyin interfaceSubstitutionHandler- Parameters:
name- the key value being checked- Returns:
- Returns
trueif it can handlename,falseotherwise - Throws:
SubstitutionException- if an error occurs accessing the keys.
-
get
Description copied from interface:SubstitutionHandlerGets the value which will be used to replace the token. Ifnameis not supported, thenget()should returnnull. Conversely, if the handler returnstrueforcontainsKey, thenget()should return a non-null String.- Specified by:
getin interfaceSubstitutionHandler- Parameters:
name- The key value for the substitution- Returns:
- the value. This may contain other substitution tokens.
- Throws:
SubstitutionException- if an error occurs accessing the value.
-
close
public void close()Description copied from interface:SubstitutionHandlerUsed to release any resources the handler may have claimed, such as open files or connections.- Specified by:
closein interfaceSubstitutionHandler
-