W - public abstract class AbstractComponent<W extends org.gytheio.content.ContentWorker> extends Object implements Component
| Modifier and Type | Field and Description |
|---|---|
protected ExecutorService |
executorService |
protected MessageProducer |
messageProducer |
protected W |
worker |
| Constructor and Description |
|---|
AbstractComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
void |
onReceive(Object message)
Performs any processing required upon receiving the given POJO message
|
protected abstract void |
onReceiveImpl(Object message) |
void |
setExecutorService(ExecutorService executorService)
Sets the executor service components may optionally need for running
separate threads.
|
void |
setMessageProducer(MessageProducer messageProducer)
Sets the message producer used to send replies
|
void |
setWorker(W worker)
Sets the transformer worker which does the actual work of the transformation
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetConsumingMessageBodyClassprotected W extends org.gytheio.content.ContentWorker worker
protected MessageProducer messageProducer
protected ExecutorService executorService
public void setWorker(W worker)
transformerWorker - public void setMessageProducer(MessageProducer messageProducer)
messageProducer - public void setExecutorService(ExecutorService executorService)
executorService - public void init()
public void onReceive(Object message)
MessageConsumeronReceive in interface MessageConsumerprotected abstract void onReceiveImpl(Object message)
Copyright © 2014 Alfresco Software. All rights reserved.