public abstract class AbstractMailQueueFactory extends Object implements MailQueueFactory, LogEnabled
MailQueueFactory abstract base class which take care of register the
MailQueue implementations via JMX (if possible)| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
protected Map<String,MailQueue> |
queues |
SPOOL| Constructor and Description |
|---|
AbstractMailQueueFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract MailQueue |
createMailQueue(String name)
Create a
MailQueue for the given name |
void |
destroy() |
MailQueue |
getQueue(String name)
Return the
MailQueue for the name. |
void |
init() |
protected void |
registerMBean(String queuename,
MailQueue queue) |
void |
setLog(org.slf4j.Logger log)
Sets the service log.
|
void |
setUseJMX(boolean useJMX) |
protected void |
unregisterMBean(String mbeanName) |
public void setUseJMX(boolean useJMX)
@PostConstruct public void init()
@PreDestroy public void destroy()
public final MailQueue getQueue(String name)
MailQueueFactoryMailQueue for the name.getQueue in interface MailQueueFactoryMailQueueFactory.getQueue(java.lang.String)protected abstract MailQueue createMailQueue(String name)
MailQueue for the given namename - protected void unregisterMBean(String mbeanName)
public void setLog(org.slf4j.Logger log)
LogEnabledsetLog in interface LogEnabledlog - not nullLogEnabled.setLog(org.slf4j.Logger)Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.