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, String rootNodeUUID, 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
 String getRootNodeUUID()
          Returns the uuid 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,
                 String rootNodeUUID,
                 NamespaceRegistry nsReg,
                 NodeTypeRegistry ntReg)
Creates a new PMContext.

Parameters:
homeDir - the physical home directory
fs - the virtual jackrabbit filesystem
rootNodeUUID - uuid 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:

getFileSystem

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

Returns:

getRootNodeUUID

public String getRootNodeUUID()
Returns the uuid of the root node

Returns:
the uuid 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-2005 The Apache Software Foundation. All Rights Reserved.