org.jboss.dna.jcr
Class JcrEngine

java.lang.Object
  extended by org.jboss.dna.jcr.JcrEngine

public class JcrEngine
extends Object

The basic component that encapsulates the JBoss DNA services, including the Repository instances.


Method Summary
 ExecutionContext getExecutionContext()
          Get the execution context for this engine.
 Problems getProblems()
          Get the problems that were encountered when setting up this engine from the configuration.
 javax.jcr.Repository getRepository(String repositoryName)
          Get the Repository implementation for the named repository.
 void shutdown()
           
 void start()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getProblems

public Problems getProblems()
Get the problems that were encountered when setting up this engine from the configuration.

Returns:
the problems, which may be empty but will never be null

getExecutionContext

public final ExecutionContext getExecutionContext()
Get the execution context for this engine. This context can be used to create additional (perhaps narrowed) contexts.

Returns:
the engine's execution context; never null

getRepository

public final javax.jcr.Repository getRepository(String repositoryName)
                                         throws javax.jcr.RepositoryException
Get the Repository implementation for the named repository.

Parameters:
repositoryName - the name of the repository, which corresponds to the name of a configured RepositorySource
Returns:
the named repository instance
Throws:
IllegalArgumentException - if the repository name is null, blank or invalid
javax.jcr.RepositoryException - if there is no repository with the specified name

start

public void start()

shutdown

public void shutdown()


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