|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.james.core.AvalonMailStore
public class AvalonMailStore
Provides a registry of mail repositories. A mail repository is uniquely identified by its destinationURL, type and model.
| Field Summary | |
|---|---|
protected org.apache.avalon.framework.configuration.Configuration |
configuration
The Avalon configuration used by the instance |
protected org.apache.avalon.framework.context.Context |
context
The Avalon context used by the instance |
protected org.apache.avalon.framework.service.ServiceManager |
m_manager
The Avalon component manager used by the instance |
| Fields inherited from interface org.apache.avalon.cornerstone.services.store.Store |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AvalonMailStore()
|
|
| Method Summary | |
|---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
|
void |
contextualize(org.apache.avalon.framework.context.Context context)
|
static java.lang.String |
getName()
Returns a new name for a repository. |
void |
initialize()
|
boolean |
isSelectable(java.lang.Object hint)
Returns whether the mail store has a repository corresponding to the passed in hint. |
void |
registerRepository(org.apache.avalon.framework.configuration.Configuration repConf)
Registers a new mail repository type in the mail store's registry based upon a passed in Configuration object. |
void |
release(java.lang.Object component)
Return the Component when you are finished with it. |
java.lang.Object |
select(java.lang.Object hint)
This method accept a Configuration object as hint and return the corresponding MailRepository. |
void |
service(org.apache.avalon.framework.service.ServiceManager manager)
|
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.avalon.framework.context.Context context
protected org.apache.avalon.framework.configuration.Configuration configuration
protected org.apache.avalon.framework.service.ServiceManager m_manager
| Constructor Detail |
|---|
public AvalonMailStore()
| Method Detail |
|---|
public void contextualize(org.apache.avalon.framework.context.Context context)
throws org.apache.avalon.framework.context.ContextException
contextualize in interface org.apache.avalon.framework.context.Contextualizableorg.apache.avalon.framework.context.ContextExceptionContextualizable.contextualize(Context)
public void service(org.apache.avalon.framework.service.ServiceManager manager)
throws org.apache.avalon.framework.service.ServiceException
service in interface org.apache.avalon.framework.service.Serviceableorg.apache.avalon.framework.service.ServiceExceptionorg.apache.avalon.framework.service.Servicable#service(ServiceManager)
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableorg.apache.avalon.framework.configuration.ConfigurationExceptionConfigurable.configure(Configuration)
public void initialize()
throws java.lang.Exception
initialize in interface org.apache.avalon.framework.activity.Initializablejava.lang.ExceptionInitializable.initialize()
public void registerRepository(org.apache.avalon.framework.configuration.Configuration repConf)
throws org.apache.avalon.framework.configuration.ConfigurationException
Registers a new mail repository type in the mail store's
registry based upon a passed in Configuration object.
This is presumably synchronized to prevent corruption of the internal registry.
repConf - the Configuration object used to register the
repository
org.apache.avalon.framework.configuration.ConfigurationException - if an error occurs accessing the
Configuration object
public java.lang.Object select(java.lang.Object hint)
throws org.apache.avalon.framework.service.ServiceException
select in interface org.apache.avalon.cornerstone.services.store.Storeselect in interface org.apache.avalon.framework.service.ServiceSelectorhint - the Configuration object used to look up the repository
org.apache.avalon.framework.service.ServiceException - if any error occurs while parsing the
Configuration or retrieving the
MailRepositorypublic static final java.lang.String getName()
Returns a new name for a repository.
Synchronized on the AvalonMailStore.class object to ensure against duplication of the repository name
public boolean isSelectable(java.lang.Object hint)
isSelectable in interface org.apache.avalon.framework.service.ServiceSelectorhint - the Configuration object used to look up the repository
public void release(java.lang.Object component)
Component when you are finished with it. In this
implementation it does nothing
release in interface org.apache.avalon.framework.service.ServiceSelectorcomponent - The Component we are releasing.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||