| |
|
| org.apache.james.core.AvalonMailStore
AvalonMailStore | public class AvalonMailStore extends AbstractLogEnabled implements Contextualizable,Serviceable,Configurable,Initializable,Store(Code) | | Provides a registry of mail repositories. A mail repository is uniquely
identified by its destinationURL, type and model.
|
Method Summary | |
public void | configure(Configuration configuration) | public void | contextualize(Context context) | final public static String | getName() | public void | initialize() | public boolean | isSelectable(Object hint) Returns whether the mail store has a repository corresponding to
the passed in hint. | public synchronized void | registerRepository(Configuration repConf) | public void | release(Object component) Return the Component when you are finished with it. | public synchronized Object | select(Object hint) This method accept a Configuration object as hint and return the
corresponding MailRepository.
The Configuration must be in the form of:
service(ServiceManager manager) |
configuration | protected Configuration configuration(Code) | | The Avalon configuration used by the instance
|
context | protected Context context(Code) | | The Avalon context used by the instance
|
m_manager | protected ServiceManager m_manager(Code) | | The Avalon component manager used by the instance
|
configure | public void configure(Configuration configuration) throws ConfigurationException(Code) | | See Also: org.apache.avalon.framework.configuration.Configurable.configure(Configuration) |
contextualize | public void contextualize(Context context) throws ContextException(Code) | | See Also: org.apache.avalon.framework.context.Contextualizable.contextualize(Context) |
getName | final public static String getName()(Code) | | Returns a new name for a repository.
Synchronized on the AvalonMailStore.class object to ensure
against duplication of the repository name
a new repository name |
initialize | public void initialize() throws Exception(Code) | | See Also: org.apache.avalon.framework.activity.Initializable.initialize |
isSelectable | public boolean isSelectable(Object hint)(Code) | | Returns whether the mail store has a repository corresponding to
the passed in hint.
Parameters: hint - the Configuration object used to look up the repository whether the mail store has a repository corresponding to this hint |
registerRepository | public synchronized void registerRepository(Configuration repConf) throws ConfigurationException(Code) | | 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.
Parameters: repConf - the Configuration object used to register therepository throws: ConfigurationException - if an error occurs accessing theConfiguration object |
release | public void release(Object component)(Code) | | Return the Component when you are finished with it. In this
implementation it does nothing
Parameters: component - The Component we are releasing. |
select | public synchronized Object select(Object hint) throws ServiceException(Code) | | This method accept a Configuration object as hint and return the
corresponding MailRepository.
The Configuration must be in the form of:
[addition configuration]
Parameters: hint - the Configuration object used to look up the repository the selected repository throws: ServiceException - if any error occurs while parsing the Configuration or retrieving the MailRepository |
service | public void service(ServiceManager manager) throws ServiceException(Code) | | See Also: org.apache.avalon.framework.service.Servicable.service(ServiceManager) |
|
|
|