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> : optional; default to true,
which means this action can be displayed to the client
<specification> :
can have 1 or more occurrences
<exportAction>false</exportAction>
: optional; if not set, default to false and it is for IMPORT. The
value must be either "true" or "false"
<forHandlerTag>WTTypeDefinitions</forHandlerTag> :
optional and can have multi-value for this tag
<actorClass>wt.ixb.actor.PickingExistingObjectActorForTypeDefinition</actorClass>
</specification>
</action>
Supported API: true
Extendable: true
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
CLASSNAME
private static final String CLASSNAME
ActorFactory
public ActorFactory()
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