Class ActionAdapter
java.lang.Object
com.inductiveautomation.factorypmi.application.binding.action.ActionAdapter
- All Implemented Interfaces:
Adapter
,InvocationHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.factorypmi.application.binding.Adapter
Adapter.ValueHolder
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
connect
(VisionClientContext appContext) Notifies the adapter that it should connect any listeners that it needs.protected Object
void
Notifies the adapter that it should disconnect any listeners.protected boolean
int
Retrieves an array of the interactions that this adapter depends on.The target component is the component that this adapter serves.boolean
boolean
isValid()
Returns true if this adapter's configuration is valid.void
setBuilderInfo
(Map<String, Object> builderInfo) void
setBuilderMode
(int builderMode) void
setConnected
(boolean b) Deprecated.void
setEventSet
(EventSetDescriptor descriptor) void
setInvokeLater
(boolean invokeLater) void
setJythonCode
(String string) void
setListenerProxy
(Object object) Deprecated.void
setMethodDescriptor
(MethodDescriptor descriptor) void
setScopeStyle
(ScriptScopeStyle scopeStyle) void
void
shutdown()
Notifies the adapter that it is becoming inactive, and should cease any polling/threaded activities.void
startup()
Notifies the adapter that it is becoming active, and should start any polling/threaded activities.
-
Field Details
-
MODE_SCRIPT
public static final int MODE_SCRIPT- See Also:
-
MODE_DB
public static final int MODE_DB- See Also:
-
MODE_NAV
public static final int MODE_NAV- See Also:
-
MODE_PROPSET
public static final int MODE_PROPSET- See Also:
-
MODE_TAGSET
public static final int MODE_TAGSET- See Also:
-
-
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?) -
disconnect
public void disconnect()Description copied from interface:Adapter
Notifies the adapter that it should disconnect any listeners.- Specified by:
disconnect
in interfaceAdapter
-
connect
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 -
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 interfaceAdapter
-
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. -
setTarget
-
startup
public void startup()Description copied from interface:Adapter
Notifies the adapter that it is becoming active, and should start any polling/threaded activities. -
shutdown
public void shutdown()Description copied from interface:Adapter
Notifies the adapter that it is becoming inactive, and should cease any polling/threaded activities. -
getEventSet
-
getMethodDescriptor
-
setConnected
Deprecated.The connected property is now transient - all new/deserialized ActionAdapters are not connected. -
setEventSet
-
setListenerProxy
Deprecated.The listener proxy object is now transient -
setMethodDescriptor
-
getJythonCode
-
setJythonCode
-
invoke
- Specified by:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-
eventsDisabled
protected boolean eventsDisabled() -
createListener
-
getBuilderInfo
-
setBuilderInfo
-
getBuilderMode
public int getBuilderMode() -
setBuilderMode
public void setBuilderMode(int builderMode) -
getScopeStyle
-
setScopeStyle
-
setInvokeLater
public void setInvokeLater(boolean invokeLater) -
isInvokeLater
public boolean isInvokeLater()
-