Class BoxLangComponentProxy

java.lang.Object
ortus.boxlang.runtime.components.Component
ortus.boxlang.runtime.components.BoxLangComponentProxy

public class BoxLangComponentProxy extends Component
This is a Component that is used to proxy from a BoxLang Class to a Java method
  • Constructor Details

    • BoxLangComponentProxy

      public BoxLangComponentProxy(IClassRunnable target)
      Constructor
    • BoxLangComponentProxy

      public BoxLangComponentProxy()
      Constructor
  • Method Details

    • getTarget

      public IClassRunnable getTarget()
      Get the target BoxLang BIF class we proxy to
      Returns:
      the target
    • setTarget

      public BoxLangComponentProxy setTarget(IClassRunnable target)
      Set the target BoxLang BIF class we proxy to
      Parameters:
      target - the target to set
    • _invoke

      public Component.BodyResult _invoke(IBoxContext context, IStruct attributes, Component.ComponentBody body, IStruct executionState)
      Description copied from class: Component
      Invoke the Component with the given arguments. This is the actual method that must be implemented by the component.
      Specified by:
      _invoke in class Component
      Parameters:
      context - The context in which the Component is being invoked
      attributes - The attributes to the Component
      body - The body of the Component
      executionState - The execution state of the Component
      Returns:
      The result of the invocation