Package com.levigo.jadice.server.core
Class NodeWorkerFactory
- java.lang.Object
-
- com.levigo.jadice.server.core.NodeWorkerFactory
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
- Direct Known Subclasses:
SecuredNodeWorkerFactory
public class NodeWorkerFactory extends Object implements org.springframework.beans.factory.BeanFactoryAware
Factory for instantiatingNodeWorker
s from a givenNode
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NodeWorkerFactory.WorkerBeanDefinitionParser
static class
NodeWorkerFactory.WorkerNamespaceHandler
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.beans.factory.BeanFactory
beanFactory
-
Constructor Summary
Constructors Constructor Description NodeWorkerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <N extends Node>
NodeWorker<N>createWorker(ServerJob job, N node)
Build aNodeWorker
for a givenNode
void
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
-
-
-
Method Detail
-
createWorker
public <N extends Node> NodeWorker<N> createWorker(ServerJob job, N node) throws Exception, NoSuchMethodException, InvocationTargetException
Build aNodeWorker
for a givenNode
- Type Parameters:
N
- TheNode
's class- Parameters:
job
- The context in which the worker will worknode
- TheNode
for which to create a worker- Returns:
- a fully initiated worker that can be subsequently connected to the rest of the workflow
- Throws:
Exception
- whenever something goes wrongNoSuchMethodException
InvocationTargetException
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
- Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
-
-