java.lang.Object
com.inductiveautomation.factorypmi.application.binding.action.ActionAdapter
All Implemented Interfaces:
Adapter, InvocationHandler

public class ActionAdapter extends Object implements Adapter, InvocationHandler
  • Field Details

  • Constructor Details

    • ActionAdapter

      public ActionAdapter()
  • Method Details

    • isValid

      public boolean isValid()
      Description copied from interface: Adapter
      Returns true if this adapter's configuration is valid. This somewhat of a hack, to detect if something has gone wrong with the adapter (due do serialization, we think?)
      Specified by:
      isValid in interface Adapter
    • disconnect

      public void disconnect()
      Description copied from interface: Adapter
      Notifies the adapter that it should disconnect any listeners.
      Specified by:
      disconnect in interface Adapter
    • connect

      public void connect(VisionClientContext appContext)
      Description copied from interface: Adapter
      Notifies the adapter that it should connect any listeners that it needs. Adapters will remain connected throughout their lifetime, even when they are dormant
      Specified by:
      connect in interface Adapter
    • getInteractions

      public InteractionDescriptor[] getInteractions()
      Description copied from interface: Adapter
      Retrieves an array of the interactions that this adapter depends on. An interaction descriptor describes an inter-component interaction.
      Specified by:
      getInteractions in interface Adapter
    • getTarget

      public Component getTarget()
      Description copied from interface: Adapter
      The target component is the component that this adapter serves. This means it is the target of a property adapter or the source of events for an action adapter.
      Specified by:
      getTarget in interface Adapter
    • setTarget

      public void setTarget(Component c)
      Specified by:
      setTarget in interface Adapter
    • startup

      public void startup()
      Description copied from interface: Adapter
      Notifies the adapter that it is becoming active, and should start any polling/threaded activities.
      Specified by:
      startup in interface Adapter
    • shutdown

      public void shutdown()
      Description copied from interface: Adapter
      Notifies the adapter that it is becoming inactive, and should cease any polling/threaded activities.
      Specified by:
      shutdown in interface Adapter
    • getEventSet

      public EventSetDescriptor getEventSet()
    • getMethodDescriptor

      public MethodDescriptor getMethodDescriptor()
    • setConnected

      @Deprecated public void setConnected(boolean b)
      Deprecated.
      The connected property is now transient - all new/deserialized ActionAdapters are not connected.
    • setEventSet

      public void setEventSet(EventSetDescriptor descriptor)
    • setListenerProxy

      @Deprecated public void setListenerProxy(Object object)
      Deprecated.
      The listener proxy object is now transient
    • setMethodDescriptor

      public void setMethodDescriptor(MethodDescriptor descriptor)
    • getJythonCode

      public String getJythonCode()
    • setJythonCode

      public void setJythonCode(String string)
    • invoke

      public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
      Specified by:
      invoke in interface InvocationHandler
      Throws:
      Throwable
    • eventsDisabled

      protected boolean eventsDisabled()
    • createListener

      protected Object createListener()
    • getBuilderInfo

      public Map<String,Object> getBuilderInfo()
    • setBuilderInfo

      public void setBuilderInfo(Map<String,Object> builderInfo)
    • getBuilderMode

      public int getBuilderMode()
    • setBuilderMode

      public void setBuilderMode(int builderMode)
    • getScopeStyle

      public ScriptScopeStyle getScopeStyle()
    • setScopeStyle

      public void setScopeStyle(ScriptScopeStyle scopeStyle)
    • setInvokeLater

      public void setInvokeLater(boolean invokeLater)
    • isInvokeLater

      public boolean isInvokeLater()