Package wt.ixb.actor

Class ActorFactory

java.lang.Object
wt.ixb.actor.ActorFactory

public class ActorFactory extends Object
Factory class to create wt.ixb.actor.Actor instances according to the parameters passed, according to the syntax to specify the actors in the registry. The general format is as follows:

  <action>
       <actionName>PickExistingObject</actionName>
       <localizedString>
          <class>wt.ixb.actor.actorResource</class>
          <key>PICKINGEXISTINGOBJECT_ACTOR_NAME</key>
       </localizedString>
       <display>true</display>

 

Supported API: true

Extendable: true
  • Method Details

    • createActor

      public static Actor createActor(String actionName, String handlerTagName) throws WTException
      Creates a wt.ixb.actor.Actor instance for import. To create an instance for export, use the method createActor( String actionName, String handlerTagName, boolean forExport ) with parameter forExport set to true.

      Supported API: true
      Parameters:
      actionName - The actor name. See the registry file for available names.
      handlerTagName - The tag name for the corresponding class handler, e.g. WTDocument, ibaDefinitions.
      Returns:
      Actor
      Throws:
      WTException
    • createActor

      public static Actor createActor(String actionName, String handlerTagName, boolean forExport) throws WTException
      Creates a wt.ixb.actor.Actor instance for export or import.
      If parameter forExport is set to true, then an instance for export is returned, otherwise an instance for import is returned.

      Supported API: true
      Parameters:
      actionName - The actor name. See the registry file for available names.
      handlerTagName - The tag name for the corresponding class handler, e.g. WTDocument, ibaDefinitions.
      forExport -
      Returns:
      Actor
      Throws:
      WTException