org.jbpm.integration.console
Class TaskClientFactory

java.lang.Object
  extended by org.jbpm.integration.console.TaskClientFactory

public class TaskClientFactory
extends Object


Field Summary
static String DEFAULT_IP_ADDRESS
           
static String DEFAULT_TASK_SERVICE_STRATEGY
           
 
Constructor Summary
TaskClientFactory()
           
 
Method Summary
static TaskClient newAsyncInstance(Properties properties, String connectorId)
           
static TaskService newInstance(Properties properties, String connectorId)
          Produces new instance of TaskClient based on given properties and assignes as connector identifier given connectorId.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TASK_SERVICE_STRATEGY

public static final String DEFAULT_TASK_SERVICE_STRATEGY
See Also:
Constant Field Values

DEFAULT_IP_ADDRESS

public static final String DEFAULT_IP_ADDRESS
See Also:
Constant Field Values
Constructor Detail

TaskClientFactory

public TaskClientFactory()
Method Detail

newInstance

public static TaskService newInstance(Properties properties,
                                      String connectorId)
Produces new instance of TaskClient based on given properties and assignes as connector identifier given connectorId.
Main property that drives type of a client (mina, hornetq, jms) is jbpm.console.task.service.strategy. If not given it will apply DEFAULT_TASK_SERVICE_STRATEGY which is mina.
Other transport specific properties must be given as part of the properties.
Common properties are:

Parameters:
properties - properties required to create task client
connectorId - identifier that will be assigned to the connector
Returns:
new instance of task client that is already connected
Throws:
IllegalArgumentException - in case unknown type of a task client is given as jbpm.console.task.service.strategy or connection to the task server failed.

newAsyncInstance

public static TaskClient newAsyncInstance(Properties properties,
                                          String connectorId)


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.