Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

org.alfresco.repo.policy
Class JavaBehaviour
java.lang.Object
  org.alfresco.repo.policy.BaseBehaviour
      org.alfresco.repo.policy.JavaBehaviour
All Implemented Interfaces:
Behaviour

@org.alfresco.api.AlfrescoPublicApi
public class JavaBehaviour
extends BaseBehaviour
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 classes/interfaces inherited from interface org.alfresco.repo.policy.Behaviour
Behaviour.NotificationFrequency
Fields inherited from class org.alfresco.repo.policy.BaseBehaviour
frequency, proxies
Constructor Summary
JavaBehaviour(Object instance, String method)
          Construct.
JavaBehaviour(Object instance, String method, Behaviour.NotificationFrequency frequency)
          Construct.
Method Summary
<T> T
getInterface(Class<T> policy)
          Gets the requested policy interface onto the behaviour
toString()
Methods inherited from class org.alfresco.repo.policy.BaseBehaviour
disable, enable, getNotificationFrequency, isEnabled, setNotificationFrequency
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Constructor Detail
JavaBehaviour
public JavaBehaviour(Object instance,
                     String method)
Construct.
Parameters:
instance - the object instance holding the method
method - the method name

JavaBehaviour
public JavaBehaviour(Object instance,
                     String method,
                     Behaviour.NotificationFrequency frequency)
Construct.
Parameters:
instance - the object instance holding the method
method - the method name
Method Detail
toString
public String toString()
Overrides:
toString in class Object

getInterface
public <T> T getInterface(Class<T> policy)
Description copied from interface: Behaviour
Gets the requested policy interface onto the behaviour
Specified by:
getInterface in interface Behaviour
Parameters:
policy - the policy interface class
Returns:
the policy interface

Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2018 Alfresco Software. All rights reserved.

Java API documentation generated with DocFlex/Javadoc 1.6.1 using JavadocPro template set.