org.modeshape.graph.connector.inmemory
Class InMemoryRepositorySource.DefaultRepositoryContext

java.lang.Object
  extended by org.modeshape.graph.connector.inmemory.InMemoryRepositorySource.DefaultRepositoryContext
All Implemented Interfaces:
RepositoryContext
Enclosing class:
InMemoryRepositorySource

protected class InMemoryRepositorySource.DefaultRepositoryContext
extends Object
implements RepositoryContext


Constructor Summary
protected InMemoryRepositorySource.DefaultRepositoryContext()
           
 
Method Summary
 Subgraph getConfiguration(int depth)
          Get a snapshot of the current configuration for the RepositorySource.
 ExecutionContext getExecutionContext()
          Get the execution context, which can be used to create other contexts with specific JAAS security contexts.
 Observer getObserver()
          Get the observer that the connector may use to publish changes.
 RepositoryConnectionFactory getRepositoryConnectionFactory()
          Get the factory for connections to other sources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryRepositorySource.DefaultRepositoryContext

protected InMemoryRepositorySource.DefaultRepositoryContext()
Method Detail

getExecutionContext

public ExecutionContext getExecutionContext()
Get the execution context, which can be used to create other contexts with specific JAAS security contexts.

Specified by:
getExecutionContext in interface RepositoryContext
Returns:
the execution context; never null
See Also:
RepositoryContext.getExecutionContext()

getConfiguration

public Subgraph getConfiguration(int depth)
Get a snapshot of the current configuration for the RepositorySource. The root of the subgraph will be the node in the configuration that represents the RepositorySource.

Specified by:
getConfiguration in interface RepositoryContext
Parameters:
depth - the max depth of the configuration subgraph
Returns:
the configuration snapshot as a subgraph, or null if there is no configuration
See Also:
RepositoryContext.getConfiguration(int)

getObserver

public Observer getObserver()
Get the observer that the connector may use to publish changes.

Specified by:
getObserver in interface RepositoryContext
Returns:
the observer, or null if the are no listeners and publishing is not required/requested
See Also:
RepositoryContext.getObserver()

getRepositoryConnectionFactory

public RepositoryConnectionFactory getRepositoryConnectionFactory()
Get the factory for connections to other sources.

Specified by:
getRepositoryConnectionFactory in interface RepositoryContext
Returns:
the connection factory
See Also:
RepositoryContext.getRepositoryConnectionFactory()


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