public class SQLDirectoryFactory extends DefaultComponent implements DirectoryFactory
| Modifier and Type | Field and Description |
|---|---|
protected SQLDirectoryRegistry |
directories |
static ComponentName |
NAME |
lastModified| Constructor and Description |
|---|
SQLDirectoryFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(ComponentContext context)
Activates the component.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
List<Directory> |
getDirectories() |
Directory |
getDirectory(String name)
Returns the directory with the given name.
|
protected static DirectoryServiceImpl |
getDirectoryService() |
String |
getName() |
void |
registerExtension(Extension extension)
Registers the given extension.
|
void |
shutdown() |
void |
unregisterExtension(Extension extension)
Unregisters the given extension.
|
applicationStarted, getAdapter, getApplicationStartedOrder, getLastModified, registerContribution, setLastModified, setModifiedNow, unregisterContributionpublic static final ComponentName NAME
protected SQLDirectoryRegistry directories
public SQLDirectoryFactory()
public Directory getDirectory(String name) throws DirectoryException
DirectoryFactorygetDirectory in interface DirectoryFactoryname - the name of the directoryDirectoryExceptionpublic String getName()
getName in interface DirectoryFactorypublic void activate(ComponentContext context)
ComponentThis method is called by the runtime when a component is activated.
activate in interface Componentactivate in class DefaultComponentcontext - the runtime contextpublic void deactivate(ComponentContext context)
ComponentThis method is called by the runtime when a component is deactivated.
deactivate in interface Componentdeactivate in class DefaultComponentcontext - the runtime contextprotected static DirectoryServiceImpl getDirectoryService()
public void registerExtension(Extension extension)
ExtensibleregisterExtension in interface ExtensibleregisterExtension in class DefaultComponentextension - the extension to registerpublic void unregisterExtension(Extension extension)
ExtensibleunregisterExtension in interface ExtensibleunregisterExtension in class DefaultComponentextension - the extension to unregisterpublic void shutdown() throws DirectoryException
shutdown in interface DirectoryFactoryDirectoryExceptionpublic List<Directory> getDirectories() throws DirectoryException
getDirectories in interface DirectoryFactoryDirectoryExceptionCopyright © 2016 Nuxeo SA. All rights reserved.