Package org.ametys.odf.inputdata
Class ContentInputDataExtensionPoint
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<ContentInputData>
-
- org.ametys.odf.inputdata.ContentInputDataExtensionPoint
-
- All Implemented Interfaces:
LogEnabled,ExtensionPoint<ContentInputData>,Disposable,Initializable,Component,Configurable,Contextualizable,Serviceable,ThreadSafe
public class ContentInputDataExtensionPoint extends AbstractThreadSafeComponentExtensionPoint<ContentInputData> implements Configurable
ThisExtensionPointhandles the pool of availableContentInputData.
-
-
Field Summary
Fields Modifier and Type Field Description private Set<String>_inputDataRolesprivate SourceResolver_resolverstatic StringROLEAvalon role-
Fields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
-
Constructor Summary
Constructors Constructor Description ContentInputDataExtensionPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(Configuration configuration)protected ConfigurationgetExternalConfiguration()Get the component configuration as a Configuration object.voidinitializeExtensions()Finalize the initialization of the extensions.
This method is called after alladdExtension()calls.
This is the last step before the actual startup of the application.voidservice(ServiceManager serviceManager)voidtoSAX(ContentHandler handler)SAX all the input data.-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
addComponent, addExtension, contextualize, dispose, getExtension, getExtensionsIds, hasExtension, initialize
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_resolver
private SourceResolver _resolver
-
_inputDataRoles
private Set<String> _inputDataRoles
-
-
Constructor Detail
-
ContentInputDataExtensionPoint
public ContentInputDataExtensionPoint()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractThreadSafeComponentExtensionPoint<ContentInputData>- Throws:
ServiceException
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
initializeExtensions
public void initializeExtensions() throws Exception
Description copied from interface:ExtensionPointFinalize the initialization of the extensions.
This method is called after alladdExtension()calls.
This is the last step before the actual startup of the application.- Specified by:
initializeExtensionsin interfaceExtensionPoint<ContentInputData>- Overrides:
initializeExtensionsin classAbstractThreadSafeComponentExtensionPoint<ContentInputData>- Throws:
Exception- if something wrong occurs
-
toSAX
public void toSAX(ContentHandler handler) throws SAXException, ProcessingException
SAX all the input data.- Parameters:
handler- the content handler to SAX into.- Throws:
SAXException- if an error occurs while SAXing.ProcessingException- if an error occurs while processing.
-
getExternalConfiguration
protected Configuration getExternalConfiguration() throws ConfigurationException
Get the component configuration as a Configuration object.- Returns:
- the component Configuration.
- Throws:
ConfigurationException- if an error occurs
-
-