Cornerstone Components - Datasource

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

Containment Avalon Framework 4.2.0
Lifestyle singleton
Lifecycle
Stage Description
LogEnabled Logs store establishment and runtime related warnings.
Contextualizable
Key Type Required
block.name java.lang.String true
app.name java.lang.String true
app.home java.io.File true
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>