public class PMContext extends Object
PMContext
is used to provide context information for a
PersistenceManager
.PersistenceManager.init(PMContext)
Constructor and Description |
---|
PMContext(File homeDir,
FileSystem fs,
NodeId rootNodeId,
NamespaceRegistry nsReg,
NodeTypeRegistry ntReg,
DataStore dataStore,
RepositoryStatisticsImpl stats)
Creates a new
PMContext . |
Modifier and Type | Method and Description |
---|---|
DataStore |
getDataStore()
Returns the data store
|
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
|
RepositoryStatisticsImpl |
getRepositoryStatistics()
Returns the repository statistics collector.
|
NodeId |
getRootNodeId()
Returns the id of the root node
|
public PMContext(File homeDir, FileSystem fs, NodeId rootNodeId, NamespaceRegistry nsReg, NodeTypeRegistry ntReg, DataStore dataStore, RepositoryStatisticsImpl stats)
PMContext
.homeDir
- the physical home directoryfs
- the virtual jackrabbit filesystemrootNodeId
- id of the root nodensReg
- namespace registryntReg
- node type registrypublic File getHomeDir()
public FileSystem getFileSystem()
public NodeId getRootNodeId()
public NamespaceRegistry getNamespaceRegistry()
public NodeTypeRegistry getNodeTypeRegistry()
public DataStore getDataStore()
public RepositoryStatisticsImpl getRepositoryStatistics()
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.