Class Main.ObjectCodes
- Enclosing class:
- Main
protected static class Main.ObjectCodes extends Object
The Spiderwiz framework includes a set of predefined data objects
that are used to
delegate some actions that require external resource access from an application that does not have access to the resource to
a peer application that does. When you use delegation, you can call the method that performs the action normally as if it
is executed directly by the delegating application, and the delegation mechanism will ensure that the action is actually
executed by the application that receives the delegate.
The class described here specifies the object codes of those predefined data objects. If you want to delegate an action
between applications, all you have to do is to include the object code of the object that governs the action in the list of
codes returned by Main.getProducedObjects()
of the delegator and include that code
in the list of codes returned by Main.getConsumedObjects()
of the application that shall
execute the action.
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
ObjectCodes()
-
Method Summary
-
Field Details
-
EventReport
Identifies an object that delegates mail notifications and alerts.Use this when you want to delegate the actions of
Main.sendNotificationMail()
andMain.sendExceptionMail()
.- See Also:
- Constant Field Values
-
RawImport
Identifies an object that delegates parsing of imported data.Use this when you want to delegate the action of
DataObject.importObject()
from an application that has access to the imported data (throughImportHandler
) to the application that needs the data but does not have access to it.Note that only objects that have a meaningful
toString()
implementation can be delegated by this mechanism.- See Also:
- Constant Field Values
-
RawExport
Identifies an object that delegates data export.Use this when you want to delegate the action of
DataObject.exportObject()
from the application that produces the data but does not have access to the external resource to an application that does have access to it (throughImportHandler
).Note that only objects that have a meaningful
toString()
implementation can be delegated by this mechanism.- See Also:
- Constant Field Values
-
-
Constructor Details
-
ObjectCodes
protected ObjectCodes()
-