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 various
DataSourceConsumer
-
Field Summary
Fields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve the ids of the used data sourcesDetermines 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
-
Field Details
-
ROLE
Avalon Role
-
-
Constructor Details
-
DataSourceConsumerExtensionPoint
public DataSourceConsumerExtensionPoint()
-
-
Method Details
-
isInUse
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
Retrieve the ids of the used data sources- Returns:
- the set of ids of data source used by all of the
DataSourceConsumer
-