org.jbpm.integration.console
Class TaskClientFactory

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

public class TaskClientFactory
extends Object


Constructor Summary
TaskClientFactory()
           
 
Method Summary
static org.jbpm.task.service.TaskClient newAsyncInstance(Properties properties, String connectorId)
           
static org.jbpm.task.service.TaskClient newAsyncInstance(Properties properties, String connectorId, boolean connect)
           
static org.jbpm.task.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
 

Constructor Detail

TaskClientFactory

public TaskClientFactory()
Method Detail

newInstance

public static org.jbpm.task.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 hornetq.
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 org.jbpm.task.service.TaskClient newAsyncInstance(Properties properties,
                                                                String connectorId,
                                                                boolean connect)

newAsyncInstance

public static org.jbpm.task.service.TaskClient newAsyncInstance(Properties properties,
                                                                String connectorId)


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