public class MailboxCopierManagement extends Object implements MailboxCopierManagementMBean, org.springframework.context.ApplicationContextAware
MailboxCopier
support via JMXConstructor and Description |
---|
MailboxCopierManagement() |
Modifier and Type | Method and Description |
---|---|
void |
copy(String srcBean,
String dstBean)
Copy from srcBean to dstBean all messages
|
Map<String,String> |
getMailboxManagerBeans()
Return a
Map which contains the bean name of the registered
MailboxManager instances as keys and the classname of them as
values |
void |
setApplicationContext(org.springframework.context.ApplicationContext context) |
void |
setMailboxCopier(org.apache.james.mailbox.copier.MailboxCopier copier) |
public void setMailboxCopier(org.apache.james.mailbox.copier.MailboxCopier copier)
public Map<String,String> getMailboxManagerBeans()
MailboxCopierManagementMBean
Map
which contains the bean name of the registered
MailboxManager
instances as keys and the classname of them as
valuesgetMailboxManagerBeans
in interface MailboxCopierManagementMBean
#getMailboxManagerBeans()
public void copy(String srcBean, String dstBean) throws Exception
MailboxCopierManagementMBean
copy
in interface MailboxCopierManagementMBean
Exception
- if copying failed#copy(java.lang.String, java.lang.String)
public void setApplicationContext(org.springframework.context.ApplicationContext context) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
(org.springframework.context.ApplicationContext)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.