Class DataSourceFactoryExtensionPoint
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<DataSourceFactory>
-
- org.ametys.plugins.externaldata.data.DataSourceFactoryExtensionPoint
-
- All Implemented Interfaces:
LogEnabled
,ExtensionPoint<DataSourceFactory>
,Disposable
,Initializable
,Component
,Contextualizable
,Serviceable
,ThreadSafe
public class DataSourceFactoryExtensionPoint extends AbstractThreadSafeComponentExtensionPoint<DataSourceFactory>
Extension point for DataSource factories.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ROLE
The Avalon role.-
Fields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
-
Constructor Summary
Constructors Constructor Description DataSourceFactoryExtensionPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<DataSourceClientInteraction.DataSourceType>
getAllTypes()
Get all types handled by the various declared factories.DataSourceFactory
getFactory(DataSourceClientInteraction.DataSourceType type)
Get the factory handling the specified type.-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
addComponent, addExtension, contextualize, dispose, getExtension, getExtensionsIds, hasExtension, initialize, initializeExtensions, service
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
DataSourceFactoryExtensionPoint
public DataSourceFactoryExtensionPoint()
-
-
Method Detail
-
getAllTypes
public Collection<DataSourceClientInteraction.DataSourceType> getAllTypes()
Get all types handled by the various declared factories.- Returns:
- the types as a Collection.
-
getFactory
public DataSourceFactory getFactory(DataSourceClientInteraction.DataSourceType type)
Get the factory handling the specified type.- Parameters:
type
- the data source type.- Returns:
- the DataSourceFactory handling the specified type, null if no factory handles this type.
-
-