@Override public RepositorySession createSession() { MetadataRepository metadataRepository = new FileMetadataRepository( metadataFacetFactories, configuration ); return new RepositorySession( metadataRepository, metadataResolver ); } }
@Override public RepositorySession createSession() { MetadataRepository metadataRepository = new FileMetadataRepository( metadataFacetFactories, configuration ); return new RepositorySession( metadataRepository, metadataResolver ); }
@Override public RepositorySession createSession() { CassandraMetadataRepository metadataRepository = new CassandraMetadataRepository( metadataFacetFactories, configuration, cassandraArchivaManager ); return new RepositorySession( metadataRepository, metadataResolver ); }
@Override public RepositorySession createSession() { try { // FIXME: is this the right separation? or should a JCR session object contain the JCR session information? // such a change might allow us to avoid creating two objects for each request. It would also clear up // the ambiguities in the API where session & repository are the inverse of JCR; and the resolver is // retrieved from the session but must have it passed in. These should be reviewed before finalising the // API. MetadataRepository metadataRepository = new JcrMetadataRepository( metadataFacetFactories, repository ); return new RepositorySession( metadataRepository, metadataResolver ); } catch ( RepositoryException e ) { // FIXME: a custom exception requires refactoring for callers to handle it throw new RuntimeException( e ); } }
@Override public RepositorySession createSession() { try { // FIXME: is this the right separation? or should a JCR session object contain the JCR session information? // such a change might allow us to avoid creating two objects for each request. It would also clear up // the ambiguities in the API where session & repository are the inverse of JCR; and the resolver is // retrieved from the session but must have it passed in. These should be reviewed before finalising the // API. MetadataRepository metadataRepository = new JcrMetadataRepository( metadataFacetFactories, repository ); return new RepositorySession( metadataRepository, getMetadataResolver() ); } catch ( RepositoryException e ) { // FIXME: a custom exception requires refactoring for callers to handle it throw new RuntimeException( e ); } }
@Override public RepositorySession createSession() { return repositorySession != null ? repositorySession : new RepositorySession( new TestMetadataRepository(), new TestMetadataResolver() ); }