org.apache.jackrabbit.core.state
Class PMContext

java.lang.Object
  extended byorg.apache.jackrabbit.core.state.PMContext

public class PMContext
extends Object

A PMContext is used to provide context information for a PersistenceManager.

See Also:
PersistenceManager.init(PMContext)

Constructor Summary
PMContext(File homeDir, FileSystem fs, NodeId rootNodeId, NamespaceRegistry nsReg, NodeTypeRegistry ntReg)
          Creates a new PMContext.
 
Method Summary
 FileSystem getFileSystem()
          Returns the virtual filesystem for this persistence manager
 File getHomeDir()
          Returns the physical home directory for this persistence manager
 NamespaceRegistry getNamespaceRegistry()
          Returns the namespace registry
 NodeTypeRegistry getNodeTypeRegistry()
          Returns the node type registry
 NodeId getRootNodeId()
          Returns the id of the root node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PMContext

public PMContext(File homeDir,
                 FileSystem fs,
                 NodeId rootNodeId,
                 NamespaceRegistry nsReg,
                 NodeTypeRegistry ntReg)
Creates a new PMContext.

Parameters:
homeDir - the physical home directory
fs - the virtual jackrabbit filesystem
rootNodeId - id of the root node
nsReg - namespace registry
ntReg - node type registry
Method Detail

getHomeDir

public File getHomeDir()
Returns the physical home directory for this persistence manager

Returns:
the physical home directory for this persistence manager

getFileSystem

public FileSystem getFileSystem()
Returns the virtual filesystem for this persistence manager

Returns:
the virtual filesystem for this persistence manager

getRootNodeId

public NodeId getRootNodeId()
Returns the id of the root node

Returns:
the id of the root node

getNamespaceRegistry

public NamespaceRegistry getNamespaceRegistry()
Returns the namespace registry

Returns:
the namespace registry

getNodeTypeRegistry

public NodeTypeRegistry getNodeTypeRegistry()
Returns the node type registry

Returns:
the node type registry


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.