public class SQLRepositoryService extends DefaultComponent
Modifier and Type | Class and Description |
---|---|
protected static class |
SQLRepositoryService.RepositoryDescriptorRegistry |
Modifier and Type | Field and Description |
---|---|
protected static String |
CONNECTIONFACTORYIMPL_CLASS |
protected SQLRepositoryService.RepositoryDescriptorRegistry |
registry |
protected Map<String,RepositoryImpl> |
testRepositories |
lastModified
Constructor and Description |
---|
SQLRepositoryService() |
Modifier and Type | Method and Description |
---|---|
void |
activate(ComponentContext context)
Activates the component.
|
protected void |
addContribution(RepositoryDescriptor descriptor) |
void |
deactivate(ComponentContext context)
Deactivates the component.
|
FulltextConfiguration |
getFulltextConfiguration(String repositoryName) |
Class<? extends FulltextParser> |
getFulltextParserClass(String repositoryName) |
List<RepositoryManagement> |
getRepositories()
Gets the repositories as a list of
RepositoryManagement objects. |
RepositoryManagement |
getRepository(String repositoryName)
Gets the low-level SQL Repository of the given name.
|
RepositoryDescriptor |
getRepositoryDescriptor(String name) |
RepositoryImpl |
getRepositoryImpl(String repositoryName) |
List<String> |
getRepositoryNames()
Gets the list of SQL repository names.
|
void |
registerContribution(Object contrib,
String xpoint,
ComponentInstance contributor) |
void |
registerTestRepository(RepositoryImpl repository) |
protected void |
removeContribution(RepositoryDescriptor descriptor) |
void |
unregisterContribution(Object contrib,
String xpoint,
ComponentInstance contributor) |
protected void |
updateRegistration(String repositoryName)
Update repository registration in high-level repository service.
|
getAdapter, getLastModified, registerExtension, setLastModified, setModifiedNow, start, stop, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted, getApplicationStartedOrder
protected static final String CONNECTIONFACTORYIMPL_CLASS
protected SQLRepositoryService.RepositoryDescriptorRegistry registry
protected final Map<String,RepositoryImpl> testRepositories
public SQLRepositoryService()
public void activate(ComponentContext context)
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextpublic void deactivate(ComponentContext context)
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextpublic void registerContribution(Object contrib, String xpoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void unregisterContribution(Object contrib, String xpoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
protected void addContribution(RepositoryDescriptor descriptor)
protected void removeContribution(RepositoryDescriptor descriptor)
protected void updateRegistration(String repositoryName)
public RepositoryDescriptor getRepositoryDescriptor(String name)
public List<String> getRepositoryNames()
public void registerTestRepository(RepositoryImpl repository)
public RepositoryManagement getRepository(String repositoryName)
repositoryName
- the repository namepublic RepositoryImpl getRepositoryImpl(String repositoryName)
public List<RepositoryManagement> getRepositories()
RepositoryManagement
objects.RepositoryManagement
public Class<? extends FulltextParser> getFulltextParserClass(String repositoryName)
public FulltextConfiguration getFulltextConfiguration(String repositoryName)
Copyright © 2018 Nuxeo. All rights reserved.