Package com.tangosol.util
Class NullImplementation.NullActionPolicy
java.lang.Object
com.tangosol.util.NullImplementation.NullActionPolicy
- All Implemented Interfaces:
ActionPolicy
- Enclosing class:
- NullImplementation
An implementation of an ActionPolicy that allows all actions.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when the specified service loads and configures this policy.booleanEvaluate if the specified action is currently allowed by this policy.toString()Return a human-readable String representation of this ActionPolicy.
-
Field Details
-
INSTANCE
Singleton instance.
-
-
Constructor Details
-
NullActionPolicy
public NullActionPolicy()
-
-
Method Details
-
init
Called when the specified service loads and configures this policy.Note: A policy could be applied to multiple services.
- Specified by:
initin interfaceActionPolicy- Parameters:
service- the service that this policy applies to
-
isAllowed
Evaluate if the specified action is currently allowed by this policy.Note: for forward compatibility, implementations should generally return true for actions that are not recognized.
- Specified by:
isAllowedin interfaceActionPolicy- Parameters:
service- the service that is performing the actionaction- the action that is being performed- Returns:
- true iff the specified action is currently allowed by this policy
-
toString
Return a human-readable String representation of this ActionPolicy.Note: this method may be used to provide information about this ActionPolicy to management interfaces.
- Specified by:
toStringin interfaceActionPolicy- Overrides:
toStringin classObject
-