Package org.ametys.core.datasource
Class DataSourceConsumerExtensionPoint
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<DataSourceConsumer>
-
- org.ametys.core.datasource.DataSourceConsumerExtensionPoint
-
- All Implemented Interfaces:
LogEnabled
,ExtensionPoint<DataSourceConsumer>
,Disposable
,Initializable
,Component
,Contextualizable
,Serviceable
,ThreadSafe
public class DataSourceConsumerExtensionPoint extends AbstractThreadSafeComponentExtensionPoint<DataSourceConsumer>
This class is in charge to load and initialize the variousDataSourceConsumer
-
-
Field Summary
Fields Modifier and Type Field Description static String
ROLE
Avalon Role-
Fields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
-
Constructor Summary
Constructors Constructor Description DataSourceConsumerExtensionPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,DataSourceConsumer.TypeOfUse>
getUsedDataSourceIds()
Retrieve the ids of the used data sourcesDataSourceConsumer.TypeOfUse
isInUse(String id)
Determines if a data source is in use by aDataSourceConsumer
-
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
-
DataSourceConsumerExtensionPoint
public DataSourceConsumerExtensionPoint()
-
-
Method Detail
-
isInUse
public DataSourceConsumer.TypeOfUse isInUse(String id)
Determines if a data source is in use by aDataSourceConsumer
- Parameters:
id
- The id of the data source to check- Returns:
- true if the data source is used by at least one of the
DataSourceConsumer
-
getUsedDataSourceIds
public Map<String,DataSourceConsumer.TypeOfUse> getUsedDataSourceIds()
Retrieve the ids of the used data sources- Returns:
- the set of ids of data source used by all of the
DataSourceConsumer
-
-