Package org.alfresco.repo.policy
Class EventBehaviour
java.lang.Object
org.alfresco.repo.policy.BaseBehaviour
org.alfresco.repo.policy.EventBehaviour
- All Implemented Interfaces:
Behaviour
Event based Behaviour.
A client uses an
The event behavior delegates the generation of the event to a method pointer. The pointer is represented by an instance object and method name.
A client uses an
EventBehaviour to bind a send event behaviour
to a Class-level Policy. The event behavior delegates the generation of the event to a method pointer. The pointer is represented by an instance object and method name.
- Author:
- Cristian Turlica
-
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
ConstructorsConstructorDescriptionEventBehaviour(AbstractEventProducer eventProducer, String endpointUri, Object instance, String method) Construct.EventBehaviour(AbstractEventProducer eventProducer, String endpointUri, 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
-
EventBehaviour
public EventBehaviour(AbstractEventProducer eventProducer, String endpointUri, Object instance, String method) Construct.- Parameters:
instance- the object instance holding the methodmethod- the method name
-
EventBehaviour
public EventBehaviour(AbstractEventProducer eventProducer, String endpointUri, Object instance, String method, Behaviour.NotificationFrequency frequency) Construct.- Parameters:
instance- the object instance holding the methodmethod- the method name
-
-
Method Details