public class RepositoryService extends Object implements Environment
RepositoryService
instance is the service responsible for initializing a JcrRepository
in the ModeShape
engine using the information from the configuration.Constructor and Description |
---|
RepositoryService(RepositoryConfiguration repositoryConfiguration,
String additionalModuleDependencies) |
Modifier and Type | Method and Description |
---|---|
void |
changeAuthenticatorField(MappedAttributeDefinition defn,
ModelNode newValue,
String authenticatorName)
Immediately change and apply the specified authenticator field in the current repository configuration to the new value.
|
void |
changeField(MappedAttributeDefinition defn,
ModelNode newValue)
Immediately change and apply the specified field in the current repository configuration to the new value.
|
void |
changeIndexDefinitionField(MappedAttributeDefinition defn,
ModelNode newValue,
String indexDefinitionName)
Immediately change and apply the specified index definition field in the current repository configuration to the new value.
|
void |
changeIndexProviderField(MappedAttributeDefinition defn,
ModelNode newValue,
String indexProviderName)
Immediately change and apply the specified index provider field in the current repository configuration to the new value.
|
void |
changePersistenceField(MappedAttributeDefinition defn,
ModelNode newValue)
Immediately change and apply the specified persistence field to the repository configuration
|
void |
changeSequencerField(MappedAttributeDefinition defn,
ModelNode newValue,
String sequencerName)
Immediately change and apply the specified sequencer field in the current repository configuration to the new value.
|
void |
changeSourceField(MappedAttributeDefinition defn,
ModelNode newValue,
String sourceName)
Immediately change and apply the specified external source field in the current repository configuration to the new value.
|
void |
changeTextExtractorField(MappedAttributeDefinition defn,
ModelNode newValue,
String extractorName)
Immediately change and apply the specified extractor field in the current repository configuration to the new value.
|
<any> |
getBinaryStorageInjector() |
org.jgroups.Channel |
getChannel(String name)
Get the JGroups channel with the given logical name.
|
<any> |
getChannelFactoryInjector() |
ClassLoader |
getClassLoader(Object caller,
String... classpathEntries)
Get a classloader given the supplied set of logical classpath entries, which the implementation can interpret however it
needs.
|
<any> |
getDataDirectoryPathInjector() |
<any> |
getEngineInjector() |
<any> |
getModuleLoaderInjector() |
<any> |
getMonitorInjector() |
<any> |
getSecurityManagementServiceInjector() |
JcrRepository |
getValue() |
String |
repositoryName() |
void |
setJournalPath(String journalPath)
Sets the path (relative) of the journal.
|
void |
setJournalRelativeTo(String journalRelativeTo)
Sets the base folder of the journal
|
void |
shutdown()
Shutdown this environment, allowing it to reclaim any resources.
|
void |
start(StartContext arg0) |
void |
stop(StopContext context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
defaultPersistenceConfiguration, getDb
public RepositoryService(RepositoryConfiguration repositoryConfiguration, String additionalModuleDependencies)
public JcrRepository getValue() throws IllegalStateException, IllegalArgumentException
public ClassLoader getClassLoader(Object caller, String... classpathEntries)
Environment
getClassLoader
in interface Environment
caller
- the object instance which calls this method and whose class loader will be used as a fallback; may not be nullclasspathEntries
- the logical classpath entries; may be nullpublic void shutdown()
Environment
shutdown
in interface Environment
public org.jgroups.Channel getChannel(String name) throws Exception
Environment
getChannel
in interface Environment
name
- the name of the channel; may not be nullException
- if there is a problem obtaining the named channelpublic final String repositoryName()
public void start(StartContext arg0) throws StartException
StartException
public void stop(StopContext context)
public void changeField(MappedAttributeDefinition defn, ModelNode newValue) throws RepositoryException, org.jboss.as.controller.OperationFailedException
defn
- the attribute definition for the value; may not be nullnewValue
- the new string valueRepositoryException
- if there is a problem obtaining the repository configuration or applying the changeorg.jboss.as.controller.OperationFailedException
- if there is a problem obtaining the raw value from the supplied model nodepublic void changeIndexProviderField(MappedAttributeDefinition defn, ModelNode newValue, String indexProviderName) throws RepositoryException, org.jboss.as.controller.OperationFailedException
defn
- the attribute definition for the value; may not be nullnewValue
- the new string valueindexProviderName
- the name of the index providerRepositoryException
- if there is a problem obtaining the repository configuration or applying the changeorg.jboss.as.controller.OperationFailedException
- if there is a problem obtaining the raw value from the supplied model nodepublic void changeIndexDefinitionField(MappedAttributeDefinition defn, ModelNode newValue, String indexDefinitionName) throws RepositoryException, org.jboss.as.controller.OperationFailedException
defn
- the attribute definition for the value; may not be nullnewValue
- the new string valueindexDefinitionName
- the name of the index definitionRepositoryException
- if there is a problem obtaining the repository configuration or applying the changeorg.jboss.as.controller.OperationFailedException
- if there is a problem obtaining the raw value from the supplied model nodepublic void changeSequencerField(MappedAttributeDefinition defn, ModelNode newValue, String sequencerName) throws RepositoryException, org.jboss.as.controller.OperationFailedException
defn
- the attribute definition for the value; may not be nullnewValue
- the new string valuesequencerName
- the name of the sequencerRepositoryException
- if there is a problem obtaining the repository configuration or applying the changeorg.jboss.as.controller.OperationFailedException
- if there is a problem obtaining the raw value from the supplied model nodepublic void changePersistenceField(MappedAttributeDefinition defn, ModelNode newValue) throws RepositoryException, org.jboss.as.controller.OperationFailedException
defn
- the attribute definition for the value; may not be nullnewValue
- the new string valueRepositoryException
- if there is a problem obtaining the repository configuration or applying the changeorg.jboss.as.controller.OperationFailedException
- if there is a problem obtaining the raw value from the supplied model nodepublic void changeSourceField(MappedAttributeDefinition defn, ModelNode newValue, String sourceName) throws RepositoryException, org.jboss.as.controller.OperationFailedException
defn
- the attribute definition for the value; may not be nullnewValue
- the new string valuesourceName
- the name of the sourceRepositoryException
- if there is a problem obtaining the repository configuration or applying the changeorg.jboss.as.controller.OperationFailedException
- if there is a problem obtaining the raw value from the supplied model nodepublic void changeTextExtractorField(MappedAttributeDefinition defn, ModelNode newValue, String extractorName) throws RepositoryException, org.jboss.as.controller.OperationFailedException
defn
- the attribute definition for the value; may not be nullnewValue
- the new string valueextractorName
- the name of the sequencerRepositoryException
- if there is a problem obtaining the repository configuration or applying the changeorg.jboss.as.controller.OperationFailedException
- if there is a problem obtaining the raw value from the supplied model nodepublic void changeAuthenticatorField(MappedAttributeDefinition defn, ModelNode newValue, String authenticatorName) throws RepositoryException, org.jboss.as.controller.OperationFailedException
defn
- the attribute definition for the value; may not be nullnewValue
- the new string valueauthenticatorName
- the name of the authenticatorRepositoryException
- if there is a problem obtaining the repository configuration or applying the changeorg.jboss.as.controller.OperationFailedException
- if there is a problem obtaining the raw value from the supplied model nodepublic <any> getBinaryStorageInjector()
public <any> getMonitorInjector()
null
)public <any> getEngineInjector()
ModeShapeEngine
referencepublic <any> getDataDirectoryPathInjector()
public <any> getModuleLoaderInjector()
public <any> getSecurityManagementServiceInjector()
public <any> getChannelFactoryInjector()
public void setJournalPath(String journalPath)
journalPath
- a String
, may not be nullCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.