Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES

## Package org.modeshape.graph.connector.path

The `PathRepository` class and its supporting classes provide a default read-only implementation of the connector classes for connectors that only support path-based access to a `standard representation of a node`.

See:
Description

Interface Summary
PathNode | Basic interface for a read-only node in a `path repository`.
PathRepositorySource | An extension of the `RepositorySource` class that provides a `cache policy` and a `repository context`.
PathRepositoryTransaction | A transaction for a `PathRepository`.
PathWorkspace |
WritablePathWorkspace | Extension of `PathWorkspace` for repositories that support modification of nodes as well as access to the nodes.

Class Summary
AbstractPathRepositorySource | Basic implementation of the trivial `PathRepositorySource` methods and the `path repository cache life cycle`.
AbstractWritablePathWorkspace | Implementation of some methods from `WritablePathWorkspace` to assist in the development of path-based connectors.
DefaultPathNode | Default immutable implementation of `PathNode`
PathRepository |
PathRepositoryConnection |
PathRequestProcessor | The default implementation of the `RequestProcessor` for path repositories.
WritablePathRepository | Extension of `PathRepository` for repositories that support modification of nodes as well as access to the nodes.

## Package org.modeshape.graph.connector.path Description

The `PathRepository` class and its supporting classes provide a default read-only implementation of the connector classes for connectors that only support path-based access to a `standard representation of a node`. Connectors to systems that provide a unique identifier for each node would generally be better implemented using the `map repository implementation instead`. To implement a connector based on this framework, one must create an implementation of `the repository source`, an implementation of `the repository itself`, and an implementation of `the workspace`.

The `repository source implementation` contains properties for the repository configuration and caching policies. A key method in the `PathRepositorySource` implementation if the `RepositorySource.getConnection()` method, which should generally be implemented using the `default connection implementation`.

     if (repository == null) {
      repository = new JdbcMetadataRepository(this);
     }
     return new MapRepositoryConnection(this, repository);

The `repository implementation` is only required to provide an implementation of the `PathRepository.initialize()` method to initialize the repository with a default `workspace` implementation for the connector and an implementation of `PathWorkspace`. All constructors for the repository must call `PathRepository.initialize()` after the constructor has completed its initialization, as demonstrated below:

     public JdbcMetadataRepository( JdbcMetadataSource source ) {
       initialize();
     }

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES

Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.