Package oracle.as.scheduler.substitution
Interface SubstitutionHandler
- All Known Implementing Classes:
AppEnvSubstitutionHandler,CcwSubstitutionHandler,EssEnvSubstitutionHandler,RequestContextSubstitutionHandler,RequestParamSubstitutionHandler,RequestSubstitutionHandler
public interface SubstitutionHandler
Interface for handlers used by classes implementing
Substitutor.- See Also:
-
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.
-
Method Details
-
getId
String getId()An 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.- Returns:
- Handler identifier
-
containsKey
Reports whether the handler can return a value to substitute forname. IfcontainsKeyreturnsfalse, then this handler will not be used for substitutingname.- Parameters:
name- the key value being checked- Returns:
- Returns
trueif it can handlename,falseotherwise - Throws:
SubstitutionException- if an error occurs accessing the keys.
-
get
Gets 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.- 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
void close()Used to release any resources the handler may have claimed, such as open files or connections.
-