public class CcwSubstitutionHandler extends Object implements SubstitutionHandler
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 and Description |
|---|
CcwSubstitutionHandler(String application, RuntimeServiceHandle rsh, oracle.as.scheduler.runtime.RuntimeStore runtimeStore)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Used to release any resources the handler may have claimed, such as open files or connections.
|
boolean |
containsKey(String name)
Reports whether the handler can return a value to substitute for
name. |
String |
get(String name)
Gets the value which will be used to replace the token.
|
String |
getId()
An identifier that can be used to request that a specific handler (or set of handlers) should be used for a substitution.
|
public CcwSubstitutionHandler(String application, RuntimeServiceHandle rsh, oracle.as.scheduler.runtime.RuntimeStore runtimeStore)
application -rsh -runtimeStore -public String getId()
SubstitutionHandlerThe 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.
getId in interface SubstitutionHandlerpublic boolean containsKey(String name) throws SubstitutionException
SubstitutionHandlername. If containsKey returns false, then this handler will not be used for substituting name.containsKey in interface SubstitutionHandlername - the key value being checkedtrue if it can handle name, false otherwiseSubstitutionException - if an error occurs accessing the keys.public String get(String name) throws SubstitutionException
SubstitutionHandlername is not supported, then get() should return null. Conversely, if the handler returns true for containsKey, then get() should return a non-null String.get in interface SubstitutionHandlername - The key value for the substitutionSubstitutionException - if an error occurs accessing the value.public void close()
SubstitutionHandlerclose in interface SubstitutionHandler