public static class EnvironmentDelegation.EnvDelegationTools
extends java.lang.Object
| Constructor and Description |
|---|
EnvironmentDelegation.EnvDelegationTools() |
| Modifier and Type | Method and Description |
|---|---|
static Environment |
getDelegateImplementing(Environment env,
java.lang.Class<?> type)
Returns the
Environment or Environment
delegate that implements the class/interface type, or null if none do. |
static Environment |
getRootEnvironmentDelegate(EnvironmentDelegation env)
Returns the root
Environment delegate. |
public EnvironmentDelegation.EnvDelegationTools()
public static Environment getRootEnvironmentDelegate(EnvironmentDelegation env)
Environment delegate. Useful
if an EnvironmentDelegation is expected to have
a delegate that is an EnvironmentDelegation.env - the EnvironmentDelegation to inspectEnvironment delegatepublic static Environment getDelegateImplementing(Environment env, java.lang.Class<?> type)
Environment or Environment
delegate that implements the class/interface type, or null if none do.env - An Environment to inspecttype - the class/interface type against which and Environment or
its delegates are being compared.Environment delegate implementing the input type or null if none do.