public class RepositoryService extends Object implements org.jboss.msc.service.Service<JcrRepository>, Environment
RepositoryService
instance is the service responsible for initializing a JcrRepository
in the ModeShape
engine using the information from the configuration.Modifier and Type | Field and Description |
---|---|
static String |
BINARY_STORAGE_CONTAINER_NAME |
static String |
CONTENT_CONTAINER_NAME |
static String |
WORKSPACES_CONTAINER_NAME |
Constructor and Description |
---|
RepositoryService(RepositoryConfiguration repositoryConfiguration) |
Modifier and Type | Method and Description |
---|---|
void |
changeAuthenticatorField(MappedAttributeDefinition defn,
org.jboss.dmr.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,
org.jboss.dmr.ModelNode newValue)
Immediately change and apply the specified field in the current repository configuration to the new value.
|
void |
changeSequencerField(MappedAttributeDefinition defn,
org.jboss.dmr.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,
org.jboss.dmr.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,
org.jboss.dmr.ModelNode newValue,
String extractorName)
Immediately change and apply the specified extractor field in the current repository configuration to the new value.
|
org.jboss.msc.value.InjectedValue<BinaryStorage> |
getBinaryStorageInjector() |
org.infinispan.manager.CacheContainer |
getCacheContainer(String name)
Get the cache container with the given name.
|
org.jboss.msc.value.InjectedValue<org.infinispan.manager.CacheContainer> |
getCacheManagerInjector() |
org.jgroups.Channel |
getChannel(String name)
Get the JGroups channel with the given logical name.
|
org.jboss.msc.value.InjectedValue<ChannelFactory> |
getChannelFactoryInjector() |
ClassLoader |
getClassLoader(ClassLoader fallbackLoader,
String... classpathEntries)
Get a classloader given the supplied set of logical classpath entries, which the implementation can interpret however it
needs.
|
org.jboss.msc.value.InjectedValue<String> |
getDataDirectoryPathInjector() |
org.jboss.msc.value.InjectedValue<ModeShapeEngine> |
getEngineInjector() |
org.jboss.msc.value.InjectedValue<IndexStorage> |
getIndexStorageConfigInjector() |
org.jboss.msc.value.InjectedValue<org.jboss.modules.ModuleLoader> |
getModuleLoaderInjector() |
org.jboss.msc.value.InjectedValue<RepositoryStatistics> |
getMonitorInjector() |
JcrRepository |
getValue() |
org.jboss.msc.value.InjectedValue<org.infinispan.manager.CacheContainer> |
getWorkspacesCacheContainerInjector() |
String |
repositoryName() |
void |
shutdown()
Shutdown this environment, allowing it to reclaim any resources.
|
void |
start(org.jboss.msc.service.StartContext arg0) |
void |
stop(org.jboss.msc.service.StopContext context) |
public static final String CONTENT_CONTAINER_NAME
public static final String BINARY_STORAGE_CONTAINER_NAME
public static final String WORKSPACES_CONTAINER_NAME
public RepositoryService(RepositoryConfiguration repositoryConfiguration)
public JcrRepository getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<JcrRepository>
IllegalStateException
IllegalArgumentException
public org.infinispan.manager.CacheContainer getCacheContainer(String name)
Environment
getCacheContainer
in interface Environment
name
- the name of the cache container; may be nullpublic 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 ClassLoader getClassLoader(ClassLoader fallbackLoader, String... classpathEntries)
Environment
getClassLoader
in interface Environment
fallbackLoader
- the classloader that should be used is the fallback class loaderclasspathEntries
- the logical classpath entriespublic void shutdown()
Environment
shutdown
in interface Environment
public final String repositoryName()
public void start(org.jboss.msc.service.StartContext arg0) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<JcrRepository>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<JcrRepository>
public void changeField(MappedAttributeDefinition defn, org.jboss.dmr.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 changeSequencerField(MappedAttributeDefinition defn, org.jboss.dmr.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 changeSourceField(MappedAttributeDefinition defn, org.jboss.dmr.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, org.jboss.dmr.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, org.jboss.dmr.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 org.jboss.msc.value.InjectedValue<IndexStorage> getIndexStorageConfigInjector()
public org.jboss.msc.value.InjectedValue<BinaryStorage> getBinaryStorageInjector()
public org.jboss.msc.value.InjectedValue<RepositoryStatistics> getMonitorInjector()
null
)public org.jboss.msc.value.InjectedValue<ModeShapeEngine> getEngineInjector()
ModeShapeEngine
referencepublic org.jboss.msc.value.InjectedValue<org.infinispan.manager.CacheContainer> getCacheManagerInjector()
public org.jboss.msc.value.InjectedValue<ChannelFactory> getChannelFactoryInjector()
public org.jboss.msc.value.InjectedValue<String> getDataDirectoryPathInjector()
public org.jboss.msc.value.InjectedValue<org.jboss.modules.ModuleLoader> getModuleLoaderInjector()
public org.jboss.msc.value.InjectedValue<org.infinispan.manager.CacheContainer> getWorkspacesCacheContainerInjector()
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.