Package org.alfresco.repo.policy
Class JavaBehaviour
java.lang.Object
org.alfresco.repo.policy.BaseBehaviour
org.alfresco.repo.policy.JavaBehaviour
- All Implemented Interfaces:
Behaviour
Java based Behaviour.
A behavior acts like a delegate (a method pointer). The pointer is
represented by an instance object and method name.
- Author:
- David Caruana
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Behaviour
Behaviour.NotificationFrequency -
Field Summary
Fields inherited from class org.alfresco.repo.policy.BaseBehaviour
frequency, proxies -
Constructor Summary
ConstructorsConstructorDescriptionJavaBehaviour(Object instance, String method) Construct.JavaBehaviour(Object instance, String method, Behaviour.NotificationFrequency frequency) Construct. -
Method Summary
Modifier and TypeMethodDescription<T> TgetInterface(Class<T> policy) Gets the requested policy interface onto the behaviourtoString()Methods inherited from class org.alfresco.repo.policy.BaseBehaviour
disable, enable, getNotificationFrequency, isEnabled, setNotificationFrequency
-
Constructor Details
-
JavaBehaviour
Construct.- Parameters:
instance- the object instance holding the methodmethod- the method name
-
JavaBehaviour
Construct.- Parameters:
instance- the object instance holding the methodmethod- the method name
-
-
Method Details