org.alfresco.repo.policy
Class JavaBehaviour
org.alfresco.repo.policy.JavaBehaviour All Implemented Interfaces:
-
@org.alfresco.api.AlfrescoPublicApi
public class JavaBehaviour
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
JavaBehaviour
-
Construct.
Parameters:
-
instance - the object instance holding the method
-
method - the method name
JavaBehaviour
-
Construct.
Parameters:
-
instance - the object instance holding the method
-
method - the method name
toString
-
Overrides:
-
getInterface
public <T> T getInterface(Class<T> policy) -
Gets the requested policy interface onto the behaviour
Specified by:
-
-
Parameters:
-
policy - the policy interface class
Returns:
-
the policy interface