org.alfresco.repo.policy
Class JavaBehaviour
java.lang.Object
org.alfresco.repo.policy.BaseBehaviour
org.alfresco.repo.policy.JavaBehaviour
- All Implemented Interfaces:
- Behaviour
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.
Method Summary |
java.lang.Object |
getInterface(java.lang.Class policy)
Gets the requested policy interface onto the behaviour |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JavaBehaviour
public JavaBehaviour(java.lang.Object instance,
java.lang.String method)
- Construct.
- Parameters:
instance
- the object instance holding the methodmethod
- the method name
JavaBehaviour
public JavaBehaviour(java.lang.Object instance,
java.lang.String method,
Behaviour.NotificationFrequency frequency)
- Construct.
- Parameters:
instance
- the object instance holding the methodmethod
- the method name
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getInterface
public java.lang.Object getInterface(java.lang.Class policy)
- Description copied from interface:
Behaviour
- Gets the requested policy interface onto the behaviour
- Parameters:
policy
- the policy interface class
- Returns:
- the policy interface
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.