|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.fractal.task.core.internal.BasicTaskFactory
public class BasicTaskFactory
Basic TaskFactory
component. This component simply delegates requests
to its compositeTaskFactoryItf
client interface or its
primitiveTaskFactoryItf
client interface.
Field Summary | |
---|---|
static java.lang.String |
COMPOSITE_TASK_FACTORY_ITF_NAME
The name of the client interface bound to the CompositeTaskFactory . |
CompositeTaskFactory |
compositeTaskFactoryItf
The client interface bound to the CompositeTaskFactory . |
static java.lang.String |
PRIMITIVE_TASK_FACTORY_ITF_NAME
The name of the client interface bound to the PrimitiveTaskFactory . |
PrimitiveTaskFactory |
primitiveTaskFactoryItf
The client interface bound to the PrimitiveTaskFactory . |
Fields inherited from interface org.objectweb.fractal.task.core.TaskFactory |
---|
EXPORT_ALL |
Constructor Summary | |
---|---|
BasicTaskFactory()
|
Method Summary | |
---|---|
void |
bindFc(java.lang.String clientItfName,
java.lang.Object serverItf)
|
java.lang.String[] |
listFc()
|
java.lang.Object |
lookupFc(java.lang.String clientItfName)
|
org.objectweb.fractal.api.Component |
newCompositeTask(java.util.Collection<org.objectweb.fractal.api.Component> subTasks,
java.lang.String compositionName,
java.util.Map<java.lang.Object,java.lang.Object> context,
java.lang.Object... parameters)
Creates a composite task component. |
org.objectweb.fractal.api.Component |
newCompositeTask(java.util.Collection<org.objectweb.fractal.api.Component> subTasks,
java.lang.String compositionName,
java.lang.String compositeName,
java.util.Map<java.lang.Object,java.lang.Object> context,
java.lang.Object... parameters)
Creates a composite task component. |
org.objectweb.fractal.api.Component |
newPrimitiveTask(java.lang.Object implementation,
java.lang.Object... parameters)
Creates a primitive task component. |
void |
unbindFc(java.lang.String clientItfName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COMPOSITE_TASK_FACTORY_ITF_NAME
CompositeTaskFactory
.
public CompositeTaskFactory compositeTaskFactoryItf
CompositeTaskFactory
.
public static final java.lang.String PRIMITIVE_TASK_FACTORY_ITF_NAME
PrimitiveTaskFactory
.
public PrimitiveTaskFactory primitiveTaskFactoryItf
PrimitiveTaskFactory
.
Constructor Detail |
---|
public BasicTaskFactory()
Method Detail |
---|
public org.objectweb.fractal.api.Component newCompositeTask(java.util.Collection<org.objectweb.fractal.api.Component> subTasks, java.lang.String compositionName, java.util.Map<java.lang.Object,java.lang.Object> context, java.lang.Object... parameters) throws TaskException
CompositeTaskFactory
newCompositeTask
in interface CompositeTaskFactory
subTasks
- the sub tasks of the composite task.compositionName
- the name of the composition schema to apply to the
created composite.context
- context.parameters
- the parameters of the composition schema.
TaskException
- if an error occurs.public org.objectweb.fractal.api.Component newCompositeTask(java.util.Collection<org.objectweb.fractal.api.Component> subTasks, java.lang.String compositionName, java.lang.String compositeName, java.util.Map<java.lang.Object,java.lang.Object> context, java.lang.Object... parameters) throws TaskException
CompositeTaskFactory
newCompositeTask
in interface CompositeTaskFactory
subTasks
- the sub tasks of the composite task.compositionName
- the name of the composition schema to apply to the
created composite.compositeName
- the name of the created composite.context
- context.parameters
- the parameters of the composition schema.
TaskException
- if an error occurs.public org.objectweb.fractal.api.Component newPrimitiveTask(java.lang.Object implementation, java.lang.Object... parameters) throws TaskException
PrimitiveTaskFactory
newPrimitiveTask
in interface PrimitiveTaskFactory
implementation
- the implementation of the task.parameters
- the parameters of the task.
TaskException
- if an error occurs while instantiating the task.public java.lang.String[] listFc()
listFc
in interface org.objectweb.fractal.api.control.BindingController
public void bindFc(java.lang.String clientItfName, java.lang.Object serverItf) throws org.objectweb.fractal.api.NoSuchInterfaceException, org.objectweb.fractal.api.control.IllegalBindingException, org.objectweb.fractal.api.control.IllegalLifeCycleException
bindFc
in interface org.objectweb.fractal.api.control.BindingController
org.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.api.control.IllegalBindingException
org.objectweb.fractal.api.control.IllegalLifeCycleException
public java.lang.Object lookupFc(java.lang.String clientItfName) throws org.objectweb.fractal.api.NoSuchInterfaceException
lookupFc
in interface org.objectweb.fractal.api.control.BindingController
org.objectweb.fractal.api.NoSuchInterfaceException
public void unbindFc(java.lang.String clientItfName) throws org.objectweb.fractal.api.NoSuchInterfaceException, org.objectweb.fractal.api.control.IllegalBindingException, org.objectweb.fractal.api.control.IllegalLifeCycleException
unbindFc
in interface org.objectweb.fractal.api.control.BindingController
org.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.api.control.IllegalBindingException
org.objectweb.fractal.api.control.IllegalLifeCycleException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |