Class Behaviour

java.lang.Object
org.alfresco.repo.jscript.Behaviour
All Implemented Interfaces:
Serializable, Scopeable

public class Behaviour extends Object implements Scopeable, Serializable
Object representing the behaviour information
Author:
Roy Wetherall
See Also:
  • Constructor Details

    • Behaviour

      public Behaviour(ServiceRegistry services, String name, Object[] args)
      Constructor
      Parameters:
      services - the service registry
      name - the name of the policy associated with this behaviour
      args - the argument values
  • Method Details

    • setScope

      public void setScope(org.mozilla.javascript.Scriptable scope)
      Description copied from interface: Scopeable
      Set the Scriptable global scope
      Specified by:
      setScope in interface Scopeable
      Parameters:
      scope - relative global scope
      See Also:
    • getName

      public String getName()
      Get the policy name
      Returns:
      the name of the policy
    • getArgs

      public Serializable[] getArgs()
      The argument values
      Returns:
      array containing the argument values