org.apache.james.core
Class AvalonMailStore

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLogEnabled
        |
        +--org.apache.james.core.AvalonMailStore
All Implemented Interfaces:
org.apache.avalon.phoenix.Block, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.ComponentSelector, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.LogEnabled, MailStore, org.apache.avalon.cornerstone.services.store.Store

public class AvalonMailStore
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.avalon.phoenix.Block, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable, MailStore

Provides Registry of mail repositories. A mail repository is uniquely identified by destinationURL, type and model.

Author:
Federico Barbieri
, Darrell DeBoer

Field Summary
protected  org.apache.avalon.framework.component.ComponentManager componentManager
           
protected  org.apache.avalon.framework.configuration.Configuration configuration
           
protected  org.apache.avalon.framework.context.Context context
           
 
Fields inherited from interface org.apache.james.services.MailStore
ROLE
 
Constructor Summary
AvalonMailStore()
           
 
Method Summary
 void compose(org.apache.avalon.framework.component.ComponentManager componentManager)
           
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
 void contextualize(org.apache.avalon.framework.context.Context context)
           
 SpoolRepository getInboundSpool()
          Convenience method to get the inbound spool repository.
static java.lang.String getName()
           
 boolean hasComponent(java.lang.Object hint)
           
 void initialize()
           
 void registerRepository(org.apache.avalon.framework.configuration.Configuration repConf)
           
 void release(org.apache.avalon.framework.component.Component component)
           
 org.apache.avalon.framework.component.Component select(java.lang.Object hint)
           
 
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

context

protected org.apache.avalon.framework.context.Context context

configuration

protected org.apache.avalon.framework.configuration.Configuration configuration

componentManager

protected org.apache.avalon.framework.component.ComponentManager componentManager
Constructor Detail

AvalonMailStore

public AvalonMailStore()
Method Detail

contextualize

public void contextualize(org.apache.avalon.framework.context.Context context)
                   throws org.apache.avalon.framework.context.ContextException
Specified by:
contextualize in interface org.apache.avalon.framework.context.Contextualizable
org.apache.avalon.framework.context.ContextException

compose

public void compose(org.apache.avalon.framework.component.ComponentManager componentManager)
             throws org.apache.avalon.framework.component.ComponentException
Specified by:
compose in interface org.apache.avalon.framework.component.Composable
org.apache.avalon.framework.component.ComponentException

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.configuration.ConfigurationException

initialize

public void initialize()
                throws java.lang.Exception
Specified by:
initialize in interface org.apache.avalon.framework.activity.Initializable
java.lang.Exception

registerRepository

public void registerRepository(org.apache.avalon.framework.configuration.Configuration repConf)
                        throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationException

release

public void release(org.apache.avalon.framework.component.Component component)
Specified by:
release in interface org.apache.avalon.framework.component.ComponentSelector

select

public org.apache.avalon.framework.component.Component select(java.lang.Object hint)
                                                       throws org.apache.avalon.framework.component.ComponentException
Specified by:
select in interface org.apache.avalon.cornerstone.services.store.Store
org.apache.avalon.framework.component.ComponentException

getName

public static final java.lang.String getName()

getInboundSpool

public SpoolRepository getInboundSpool()
Description copied from interface: MailStore
Convenience method to get the inbound spool repository.

Specified by:
getInboundSpool in interface MailStore

hasComponent

public boolean hasComponent(java.lang.Object hint)
Specified by:
hasComponent in interface org.apache.avalon.framework.component.ComponentSelector


"Copyright © 2001 Apache Jakarta Project. All Rights Reserved."