org.jboss.dna.repository
Class RepositoryService

java.lang.Object
  extended by org.jboss.dna.repository.RepositoryService
All Implemented Interfaces:
AdministeredService

@ThreadSafe
public class RepositoryService
extends Object
implements AdministeredService

Author:
Randall Hauch

Constructor Summary
RepositoryService(RepositoryLibrary sources, String configurationSourceName, ExecutionContext context)
          Create a service instance, reading the configuration describing new RepositorySource instances from the source with the supplied name.
RepositoryService(RepositoryLibrary sources, String configurationSourceName, Path pathToConfigurationRoot, ExecutionContext context)
          Create a service instance, reading the configuration describing new RepositorySource instances from the source with the supplied name and path within the repository.
 
Method Summary
 boolean equals(Object obj)
          
 ServiceAdministrator getAdministrator()
          
 String getConfigurationSourceName()
           
 ExecutionContext getExecutionEnvironment()
           
 String getJndiName()
           
 RepositoryLibrary getRepositorySourceManager()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryService

public RepositoryService(RepositoryLibrary sources,
                         String configurationSourceName,
                         ExecutionContext context)
Create a service instance, reading the configuration describing new RepositorySource instances from the source with the supplied name.

Parameters:
sources - the source manager
configurationSourceName - the name of the RepositorySource that is the configuration repository
context - the execution context in which this service should run
Throws:
IllegalArgumentException - if the bootstrap source is null or the execution context is null

RepositoryService

public RepositoryService(RepositoryLibrary sources,
                         String configurationSourceName,
                         Path pathToConfigurationRoot,
                         ExecutionContext context)
Create a service instance, reading the configuration describing new RepositorySource instances from the source with the supplied name and path within the repository.

Parameters:
sources - the source manager
configurationSourceName - the name of the RepositorySource that is the configuration repository
pathToConfigurationRoot - the path of the node in the configuration source repository that should be treated by this service as the root of the service's configuration; if null, then "/dna:system" is used
context - the execution context in which this service should run
Throws:
IllegalArgumentException - if the bootstrap source is null or the execution context is null
Method Detail

getAdministrator

public ServiceAdministrator getAdministrator()

Specified by:
getAdministrator in interface AdministeredService

getConfigurationSourceName

public String getConfigurationSourceName()
Returns:
configurationSourceName

getRepositorySourceManager

public RepositoryLibrary getRepositorySourceManager()
Returns:
sources

getExecutionEnvironment

public ExecutionContext getExecutionEnvironment()
Returns:
env

getJndiName

public String getJndiName()

equals

public boolean equals(Object obj)

Overrides:
equals in class Object


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.