org.openanzo.server.repository.cache
Interface CachableResourceFactory<E>

Type Parameters:
E - type of object being cached
All Known Implementing Classes:
ACI.Factory, NamedGraph.Factory

public interface CachableResourceFactory<E>

Provides access to resources either via their URI or id.

Author:
Joe Betz

Method Summary
 E getResource(RepositoryConnection repositoryConnection, java.lang.Long id, boolean forceCreate)
          Creates an instance of a CachableResource via Id lookup.
 

Method Detail

getResource

E getResource(RepositoryConnection repositoryConnection,
              java.lang.Long id,
              boolean forceCreate)
              throws AnzoException
Creates an instance of a CachableResource via Id lookup.

Parameters:
repositoryConnection - RepositoryConnection to run queries against
id - Unique id of the resource to fetch
forceCreate - Create resource if not present
Returns:
an instance of a cached object
Throws:
AnzoException


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.