Class Main.ObjectCodes

java.lang.Object
org.spiderwiz.core.Main.ObjectCodes
Enclosing class:
Main

protected static class Main.ObjectCodes
extends Object
Object codes of predefined Data Objects.

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 Details

    • EventReport

      public static final String EventReport
      Identifies an object that delegates mail notifications and alerts.

      Use this when you want to delegate the actions of Main.sendNotificationMail() and Main.sendExceptionMail().

      See Also:
      Constant Field Values
    • RawImport

      public static final String 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 (through ImportHandler) 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

      public static final String 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 (through ImportHandler).

      Note that only objects that have a meaningful toString() implementation can be delegated by this mechanism.

      See Also:
      Constant Field Values
  • Constructor Details