|
ModeShape Distribution 3.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.jboss.service.RepositoryService
public class RepositoryService
A RepositoryService instance is the service responsible for initializing a JcrRepository in the ModeShape
engine using the information from the configuration.
| Field Summary | |
|---|---|
static String |
BINARY_STORAGE_CONTAINER_NAME
|
static String |
CONTENT_CONTAINER_NAME
|
static String |
WORKSPACES_CONTAINER_NAME
|
| Fields inherited from interface org.jboss.msc.service.Service |
|---|
NULL, NULL_VALUE |
| Constructor Summary | |
|---|---|
RepositoryService(RepositoryConfiguration repositoryConfiguration)
|
|
| Method Summary | |
|---|---|
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()
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONTENT_CONTAINER_NAME
public static final String BINARY_STORAGE_CONTAINER_NAME
public static final String WORKSPACES_CONTAINER_NAME
| Constructor Detail |
|---|
public RepositoryService(RepositoryConfiguration repositoryConfiguration)
| Method Detail |
|---|
public JcrRepository getValue()
throws IllegalStateException,
IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<JcrRepository>IllegalStateException
IllegalArgumentExceptionpublic org.infinispan.manager.CacheContainer getCacheContainer(String name)
Environment
getCacheContainer in interface Environmentname - the name of the cache container; may be null
public org.jgroups.Channel getChannel(String name)
throws Exception
Environment
getChannel in interface Environmentname - the name of the channel; may not be null
Exception - if there is a problem obtaining the named channel
public ClassLoader getClassLoader(ClassLoader fallbackLoader,
String... classpathEntries)
Environment
getClassLoader in interface EnvironmentfallbackLoader - the classloader that should be used is the fallback class loaderclasspathEntries - the logical classpath entries
public void shutdown()
Environment
shutdown in interface Environmentpublic 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.StartExceptionpublic 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 value
RepositoryException - if there is a problem obtaining the repository configuration or applying the change
org.jboss.as.controller.OperationFailedException - if there is a problem obtaining the raw value from the supplied model node
public 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 sequencer
RepositoryException - if there is a problem obtaining the repository configuration or applying the change
org.jboss.as.controller.OperationFailedException - if there is a problem obtaining the raw value from the supplied model node
public 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 source
RepositoryException - if there is a problem obtaining the repository configuration or applying the change
org.jboss.as.controller.OperationFailedException - if there is a problem obtaining the raw value from the supplied model node
public 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 sequencer
RepositoryException - if there is a problem obtaining the repository configuration or applying the change
org.jboss.as.controller.OperationFailedException - if there is a problem obtaining the raw value from the supplied model node
public 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 authenticator
RepositoryException - if there is a problem obtaining the repository configuration or applying the change
org.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<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()
|
ModeShape Distribution 3.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||