|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.LexGrid.LexBIG.Impl.Extensions.ExtensionRegistryImpl
public class ExtensionRegistryImpl
Implementation of the LexGrid Extension Registry.
Method Summary | ||
---|---|---|
ExtensionDescription |
getExportExtension(java.lang.String name)
Returns the description of a registered extension matching the given name. |
|
ExtensionDescriptionList |
getExportExtensions()
Returns a description of all registered extensions used to export information loaded to a LexBIGService. |
|
Filter |
getFilter(java.lang.String name)
|
|
ExtensionDescription |
getFilterExtension(java.lang.String name)
Returns the description of a registered extension matching the given name. |
|
ExtensionDescriptionList |
getFilterExtensions()
Returns a description of all registered extensions used to provide additional filtering of query results. |
|
ExtensionDescription |
getGenericExtension(java.lang.String name)
Returns the description of a registered extension matching the given name. |
|
|
getGenericExtension(java.lang.String extensionName,
java.lang.Class<T> extensionClass)
|
|
ExtensionDescriptionList |
getGenericExtensions()
Returns a description of all registered extensions used to implement application-specific behavior that is centrally accessible from a LexBIGService. |
|
ExtensionDescription |
getIndexExtension(java.lang.String name)
Returns the description of a registered extension matching the given name. |
|
ExtensionDescriptionList |
getIndexExtensions()
Returns a description of all registered extensions used to index information that has been previously loaded to a LexBIGService. |
|
ExtensionDescription |
getLoadExtension(java.lang.String name)
Returns the description of a registered extension matching the given name. |
|
ExtensionDescriptionList |
getLoadExtensions()
Returns a description of all registered extensions used to load information for access by a LexBIGService. |
|
protected LgLoggerIF |
getLogger()
|
|
Search |
getSearchAlgorithm(java.lang.String name)
|
|
ExtensionDescription |
getSearchExtension(java.lang.String name)
Returns the description of a registered extension matching the given name. |
|
ExtensionDescriptionList |
getSearchExtensions()
Returns a description of all registered extensions used to provide additional sorting of query results. |
|
Sort |
getSortAlgorithm(java.lang.String name)
|
|
SortDescription |
getSortExtension(java.lang.String name)
Returns the description of a registered extension matching the given name. |
|
SortDescriptionList |
getSortExtensions()
Returns a description of all registered extensions used to provide additional sorting of query results. |
|
static ExtensionRegistryImpl |
instance()
|
|
void |
registerExportExtension(ExtensionDescription description)
Registers a class of extension used to export existing content from the LexGrid repository. |
|
void |
registerFilterExtension(ExtensionDescription description)
Registers a class of extension used to filter query content. |
|
void |
registerGenericExtension(ExtensionDescription description)
Registers a class of extension used to implement application-specific behavior that is centrally accessible from a LexBIGService. |
|
void |
registerIndexExtension(ExtensionDescription description)
Registers a class of extension used to index information that has been previously loaded to a LexBIGService. |
|
void |
registerLoadExtension(ExtensionDescription description)
Registers a class of extension used to load information for access by a LexBIGService. |
|
void |
registerSearchExtension(ExtensionDescription description)
|
|
void |
registerSortExtension(SortDescription description)
Registers a class of extension used to provide additional sorting of query results. |
|
void |
unregisterExportExtension(java.lang.String name)
Removes registration for the given named extension. |
|
void |
unregisterFilterExtension(java.lang.String name)
Removes registration for the given named extension. |
|
void |
unregisterGenericExtension(java.lang.String name)
Removes registration for the given named extension. |
|
void |
unregisterIndexExtension(java.lang.String name)
Removes registration for the given named extension. |
|
void |
unregisterLoadExtension(java.lang.String name)
Removes registration for the given named extension. |
|
void |
unregisterSearchExtension(java.lang.String name)
|
|
void |
unregisterSortExtension(java.lang.String name)
Removes registration for the given named extension. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected LgLoggerIF getLogger()
public static ExtensionRegistryImpl instance()
public ExtensionDescription getExportExtension(java.lang.String name)
ExtensionRegistry
getExportExtension
in interface ExtensionRegistry
name
- The extension name; not null.
public ExtensionDescriptionList getExportExtensions()
ExtensionRegistry
getExportExtensions
in interface ExtensionRegistry
public ExtensionDescription getFilterExtension(java.lang.String name)
ExtensionRegistry
getFilterExtension
in interface ExtensionRegistry
name
- The extension name; not null.
public Filter getFilter(java.lang.String name) throws LBParameterException
LBParameterException
public ExtensionDescriptionList getFilterExtensions()
ExtensionRegistry
getFilterExtensions
in interface ExtensionRegistry
public ExtensionDescriptionList getSearchExtensions()
ExtensionRegistry
getSearchExtensions
in interface ExtensionRegistry
public ExtensionDescription getSearchExtension(java.lang.String name)
ExtensionRegistry
getSearchExtension
in interface ExtensionRegistry
name
- The extension name; not null.
public Search getSearchAlgorithm(java.lang.String name) throws LBParameterException
LBParameterException
public ExtensionDescription getGenericExtension(java.lang.String name)
ExtensionRegistry
getGenericExtension
in interface ExtensionRegistry
name
- The extension name; not null.
public ExtensionDescriptionList getGenericExtensions()
ExtensionRegistry
Note that only generic extensions (base class GenericExtension) will be listed here. All other classes are retrievable at the appropriate interface point (filter, sort, etc).
getGenericExtensions
in interface ExtensionRegistry
public <T extends Extendable> T getGenericExtension(java.lang.String extensionName, java.lang.Class<T> extensionClass) throws LBParameterException
getGenericExtension
in interface ExtensionRegistry
LBParameterException
public ExtensionDescription getIndexExtension(java.lang.String name)
ExtensionRegistry
getIndexExtension
in interface ExtensionRegistry
name
- The extension name; not null.
public ExtensionDescriptionList getIndexExtensions()
ExtensionRegistry
getIndexExtensions
in interface ExtensionRegistry
public ExtensionDescription getLoadExtension(java.lang.String name)
ExtensionRegistry
getLoadExtension
in interface ExtensionRegistry
name
- The extension name; not null.
public ExtensionDescriptionList getLoadExtensions()
ExtensionRegistry
getLoadExtensions
in interface ExtensionRegistry
public SortDescription getSortExtension(java.lang.String name)
ExtensionRegistry
getSortExtension
in interface ExtensionRegistry
name
- The extension name; not null.
public SortDescriptionList getSortExtensions()
ExtensionRegistry
getSortExtensions
in interface ExtensionRegistry
public Sort getSortAlgorithm(java.lang.String name) throws LBParameterException
LBParameterException
public void registerExportExtension(ExtensionDescription description) throws LBParameterException
ExtensionRegistry
registerExportExtension
in interface ExtensionRegistry
description
- The description of the extension to register, which must
provide a unique name for this type of extension and identify
a class of item implementing
org.LexGrid.LexBIG.Extensions.Export.Exporter with a public
parameterless constructor.
LBParameterException
- If the given description does not meet the specified
criteria.public void registerFilterExtension(ExtensionDescription description) throws LBParameterException
ExtensionRegistry
registerFilterExtension
in interface ExtensionRegistry
description
- The description of the extension to register, which must
provide a unique name for this type of extension and identify
a class of item implementing
org.LexGrid.LexBIG.Extensions.Query.Filter with a public
parameterless constructor.
LBParameterException
- If the given description does not meet the specified
criteria.public void registerGenericExtension(ExtensionDescription description) throws LBParameterException
ExtensionRegistry
registerGenericExtension
in interface ExtensionRegistry
description
- The description of the extension to register, which must
provide a unique name for this type of extension and identify
a class of item implementing
org.LexGrid.LexBIG.Extensions.Generic.GenericExtension with a
public parameterless constructor.
LBParameterException
- If the given description does not meet the specified
criteria.public void registerIndexExtension(ExtensionDescription description) throws LBParameterException
ExtensionRegistry
registerIndexExtension
in interface ExtensionRegistry
description
- The description of the extension to register, which must
provide a unique name for this type of extension and identify
a class of item implementing
org.LexGrid.LexBIG.Extensions.Index.Index with a public
parameterless constructor.
LBParameterException
- If the given description does not meet the specified
criteria.public void registerLoadExtension(ExtensionDescription description) throws LBParameterException
ExtensionRegistry
registerLoadExtension
in interface ExtensionRegistry
description
- The description of the extension to register, which must
provide a unique name for this type of extension and identify
a class of item implementing
org.LexGrid.LexBIG.Extensions.Load.Loader with a public
parameterless constructor.
LBParameterException
- If the given description does not meet the specified
criteria.public void registerSortExtension(SortDescription description) throws LBParameterException
ExtensionRegistry
NOTE: Sort extensions can only be applied when resolving standard node set representations. Therefore the provided description MUST be restricted only to a sort context of SortContext.SET.
registerSortExtension
in interface ExtensionRegistry
description
- The description of the extension to register, which must
provide a unique name for this type of extension and identify
a class of item implementing
org.LexGrid.LexBIG.Extensions.Query.Sort with a public
parameterless constructor.
LBParameterException
- If the given description does not meet the specified
criteria.public void registerSearchExtension(ExtensionDescription description) throws LBParameterException
registerSearchExtension
in interface ExtensionRegistry
LBParameterException
public void unregisterExportExtension(java.lang.String name) throws LBParameterException
ExtensionRegistry
unregisterExportExtension
in interface ExtensionRegistry
name
- The extension name; not null. The extension version; null to
match all versions.
LBParameterException
- If the given name does not match a registered extension.public void unregisterFilterExtension(java.lang.String name) throws LBParameterException
ExtensionRegistry
unregisterFilterExtension
in interface ExtensionRegistry
name
- The extension name; not null.
LBParameterException
- If the given name does not match a registered extension.public void unregisterGenericExtension(java.lang.String name) throws LBParameterException
ExtensionRegistry
unregisterGenericExtension
in interface ExtensionRegistry
name
- The extension name; not null.
LBParameterException
- If the given name does not match a registered extension.public void unregisterIndexExtension(java.lang.String name) throws LBParameterException
ExtensionRegistry
unregisterIndexExtension
in interface ExtensionRegistry
name
- The extension name; not null.
LBParameterException
- If the given name does not match a registered extension.public void unregisterLoadExtension(java.lang.String name) throws LBParameterException
ExtensionRegistry
unregisterLoadExtension
in interface ExtensionRegistry
name
- The extension name; not null.
LBParameterException
- If the given name does not match a registered extension.public void unregisterSortExtension(java.lang.String name) throws LBParameterException
ExtensionRegistry
unregisterSortExtension
in interface ExtensionRegistry
name
- The extension name; not null.
LBParameterException
- If the given name does not match a registered extension.public void unregisterSearchExtension(java.lang.String name) throws LBParameterException
unregisterSearchExtension
in interface ExtensionRegistry
LBParameterException
|
Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |