org.ametys.plugins.datainclusion.data
Class DataSourceFactoryExtensionPoint

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<DataSourceFactory>
          extended by org.ametys.plugins.datainclusion.data.DataSourceFactoryExtensionPoint
All Implemented Interfaces:
org.ametys.runtime.plugin.ExtensionPoint<DataSourceFactory>, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.thread.ThreadSafe

public class DataSourceFactoryExtensionPoint
extends org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<DataSourceFactory>

Extension point for DataSource factories.


Field Summary
static String ROLE
          The Avalon role.
 
Fields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
 
Constructor Summary
DataSourceFactoryExtensionPoint()
           
 
Method Summary
 Collection<String> getAllTypes()
          Get all types handled by the various declared factories.
 DataSourceFactory getFactory(String 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.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROLE

public static final String ROLE
The Avalon role.

Constructor Detail

DataSourceFactoryExtensionPoint

public DataSourceFactoryExtensionPoint()
Method Detail

getAllTypes

public Collection<String> getAllTypes()
Get all types handled by the various declared factories.

Returns:
the types as a Collection.

getFactory

public DataSourceFactory getFactory(String 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.


Copyright © 2010 Anyware Services. All Rights Reserved.