@Component(componentId="org.everit.email.queue.ecm.EmailQueue",
configurationPolicy=FACTORY,
label="Everit Email Queue",
description="ECM component for Email Queue.")
@StringAttributes(value=@StringAttribute(attributeId="service.description",defaultValue="Email Queue Component",priority=0.0f,label="Service Description",description="The description of this component configuration.It is used to easily identify the service registered by this component."))
@ManualService(value={org.everit.email.store.EmailStore.class,java.lang.Runnable.class})
public class EmailQueueComponent
extends Object
EmailQueue implementation.| Constructor and Description |
|---|
EmailQueueComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.everit.osgi.ecm.component.ComponentContext<EmailQueueComponent> componentContext)
The activate method that registers a
EmailSender and Runnable OSGi service. |
void |
deactivate()
Unregisters the
EmailSender and Runnable OSGi service. |
void |
setBatchMaxSize(int max) |
void |
setEmailSender(org.everit.email.sender.EmailSender emailSender) |
void |
setEmailStore(org.everit.email.store.EmailStore emailStore) |
void |
setQuerydslSupport(org.everit.persistence.querydsl.support.QuerydslSupport querydslSupport) |
void |
setTransactionPropagator(org.everit.transaction.propagator.TransactionPropagator transactionPropagator) |
@Activate public void activate(org.everit.osgi.ecm.component.ComponentContext<EmailQueueComponent> componentContext)
EmailSender and Runnable OSGi service.@Deactivate public void deactivate()
EmailSender and Runnable OSGi service.@IntegerAttribute(attributeId="batchMaxSize",
defaultValue=10,
priority=5.0f,
label="Batch max size",
description="The maximum number of emails that is passed on to the sink in a job call.")
public void setBatchMaxSize(int max)
@ServiceRef(attributeId="emailSender.target",
defaultValue="",
attributePriority=4.0f,
label="Email sender",
description="OSGi service filter for org.everit.email.sender.EmailSender.")
public void setEmailSender(org.everit.email.sender.EmailSender emailSender)
@ServiceRef(attributeId="emailStore.target",
defaultValue="",
attributePriority=3.0f,
label="Email store",
description="OSGi service filter for org.everit.email.store.EmailStore.")
public void setEmailStore(org.everit.email.store.EmailStore emailStore)
@ServiceRef(attributeId="querydslSupport.target",
defaultValue="",
attributePriority=1.0f,
label="Querydsl support",
description="OSGi service filter for org.everit.persistence.querydsl.support.QuerydslSupport.")
public void setQuerydslSupport(org.everit.persistence.querydsl.support.QuerydslSupport querydslSupport)
@ServiceRef(attributeId="transactionPropagator.target",
defaultValue="",
attributePriority=2.0f,
label="Transaction propagator",
description="OSGi service filter for org.everit.transaction.propagator.TransactionPropagator.")
public void setTransactionPropagator(org.everit.transaction.propagator.TransactionPropagator transactionPropagator)
Copyright © 2011–2016 Everit Kft.. All rights reserved.