public class GetEnvValueTask extends SessionedTask<java.lang.Object>
| Constructor and Description |
|---|
GetEnvValueTask(Ref ref, java.lang.String envType, java.lang.String location)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
_execute()
Subclasses implement this method
|
static java.lang.Object |
getEnvValue(ConfigService configService, java.lang.String session, Ref ref, java.lang.String envType, java.lang.String location)
Convenience method to create and execute an instance of this task
|
assertExists, assertLocation, assertNONResource, assertNotExists, assertNotLocationData, assertNotNull, assertNotNullElement, assertResource, assertSimple, call, doExecute, doExecute, doExecute, doExecute, expand, getConfigContext, getConfigMBean, getConfigService, getDescription, getSession, isLocation, isReadOnlyTransaction, requiresSystemTransactionpublic GetEnvValueTask(Ref ref, java.lang.String envType, java.lang.String location)
ref - the resource to get the env value fromenvType - the type of env value to getlocation - the location of the env value within the resourcepublic static java.lang.Object getEnvValue(ConfigService configService, java.lang.String session, Ref ref, java.lang.String envType, java.lang.String location) throws NotFoundException
configService - the config service instancesession - the session to execute against; null indicates coreref - the resource to get the env value fromenvType - the type of env vslue to getlocation - the location of the env value within the resourcdNotFoundException - if the resource cannot be foundprotected java.lang.Object _execute()
throws java.lang.Exception
SessionedTask_execute in class SessionedTask<java.lang.Object>java.lang.Exception