org.alfresco.repo.jscript
Class ScriptBehaviour

java.lang.Object
  extended by org.alfresco.repo.policy.BaseBehaviour
      extended by org.alfresco.repo.jscript.ScriptBehaviour
All Implemented Interfaces:
Behaviour

public class ScriptBehaviour
extends BaseBehaviour

JavaScript behaviour implementation


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
ScriptBehaviour()
           
ScriptBehaviour(ServiceRegistry serviceRegistry, ScriptLocation location)
           
ScriptBehaviour(ServiceRegistry serviceRegistry, ScriptLocation location, Behaviour.NotificationFrequency frequency)
           
 
Method Summary
 java.lang.Object getInterface(java.lang.Class policy)
          Gets the requested policy interface onto the behaviour
 void setLocation(ScriptLocation location)
           
 void setServiceRegistry(ServiceRegistry serviceRegistry)
           
 java.lang.String 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

ScriptBehaviour

public ScriptBehaviour()

ScriptBehaviour

public ScriptBehaviour(ServiceRegistry serviceRegistry,
                       ScriptLocation location)

ScriptBehaviour

public ScriptBehaviour(ServiceRegistry serviceRegistry,
                       ScriptLocation location,
                       Behaviour.NotificationFrequency frequency)
Method Detail

setServiceRegistry

public void setServiceRegistry(ServiceRegistry serviceRegistry)

setLocation

public void setLocation(ScriptLocation location)

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.