link
Avalon
Avalon Planet
Home PlanetProductsCentral
Store
Description

The Store service provides a way to store named Objects or Streams without knowing how they are stored. The RepositoryManager block implements this service and provides (in invocation of select(..) ) an appropriate Respository. The two configurable implementations use the local file system for storage.

Deployment Facts
ContainmentAvalon Framework 4.2.0
Lifestylesingleton
Lifecycle
StageDescription
LogEnabledLogs store establishment and runtime related warnings.
Contextualizable
KeyTypeRequired
block.namejava.lang.Stringtrue
app.namejava.lang.Stringtrue
app.homejava.io.Filetrue
Configurable Example configuration included below.
Serviceable WARNING: Implementated but no dependencies declared!
Disposable Component disposal.
Example Configuration

The following example coinfiguration is taken from the Apache James Project.

<configuration>
  <repositories>
    <repository
 class="org.apache.james.mailrepository.filepair.File_Persistent_Object_Repository"> 
      <protocols>
        <protocol>file</protocol>
      </protocols>
      <types>
        <type>OBJECT</type>
      </types>
      <models>
        <model>SYNCHRONOUS</model>
        <model>ASYNCHRONOUS</model>
        <model>CACHE</model>
      </models>
    </repository>
    <repository 
class="org.apache.james.mailrepository.filepair.File_Persistent_Stream_Repository">
      <protocols>
        <protocol>file</protocol>
      </protocols>
      <types>
        <type>STREAM</type>
      </types>
      <models>
        <model>SYNCHRONOUS</model>
        <model>ASYNCHRONOUS</model>
        <model>CACHE</model>
      </models>
    </repository>
  </repositories>
</configuration>