public static class NullImplementation.NullActionPolicy extends Object implements ActionPolicy
| Modifier and Type | Field and Description | 
|---|---|
static ActionPolicy | 
INSTANCE
Singleton instance. 
 | 
| Constructor and Description | 
|---|
NullActionPolicy()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
init(Service service)
Called when the specified service loads and configures this policy. 
 | 
boolean | 
isAllowed(Service service,
         Action action)
Evaluate if the specified action is currently allowed by this policy. 
 | 
String | 
toString()
Return a human-readable String representation of this ActionPolicy. 
 | 
public static final ActionPolicy INSTANCE
public void init(Service service)
Note: A policy could be applied to multiple services.
init in interface ActionPolicyservice - the service that this policy applies topublic boolean isAllowed(Service service, Action action)
Note: for forward compatibility, implementations should generally return true for actions that are not recognized.
isAllowed in interface ActionPolicyservice - the service that is performing the actionaction - the action that is being performedpublic String toString()
Note: this method may be used to provide information about this ActionPolicy to management interfaces.
toString in interface ActionPolicytoString in class Object