public class DataInclusionEnhancementHandler extends AbstractEnhancementHandler implements Component, Serviceable, Contextualizable, PluginAware
Modifier and Type | Field and Description |
---|---|
protected Context |
_context
The avalon context.
|
private DataSourceFactoryExtensionPoint |
_dataSourceFactoryEP |
private static String |
_ID_ATTR |
protected Logger |
_logger
The logger
|
private static String |
_PARAMETER_PREFIX |
protected String |
_pluginName
The plugin name.
|
private URIPrefixHandler |
_prefixHandler |
private static String |
_QUERY_TAG |
protected QueryDao |
_queryDao
The Query DAO.
|
private RenderingContextHandler |
_renderingContextHandler |
static String |
ROLE
The Avalon role.
|
_contentHandler, _inUnmodifiableContent, _lexicalHandler, PROCESSING_INSTRUCTION_UNMODIFIABLE
Constructor and Description |
---|
DataInclusionEnhancementHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
_saxResult(Query query,
QueryResult result)
Sax a query result.
|
protected void |
_saxSingleResult(Query query,
QueryResult result)
Sax a single query result.
|
void |
contextualize(Context context) |
void |
enableLogging(Logger logger) |
void |
endElement(String uri,
String localName,
String qName) |
protected Map<String,String> |
getParameters(Query query,
Attributes atts)
Get the query parameter values from the query node attributes.
|
void |
service(ServiceManager serviceManager) |
void |
setPluginInfo(String pluginName,
String featureName,
String id)
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level. |
void |
startElement(String uri,
String localName,
String qName,
Attributes atts) |
characters, comment, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, saxError, setContentHandler, setDocumentLocator, setLexicalHandler, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping
getLogger, setupLogger, setupLogger, setupLogger
private static final String _QUERY_TAG
private static final String _ID_ATTR
private static final String _PARAMETER_PREFIX
protected String _pluginName
private RenderingContextHandler _renderingContextHandler
private URIPrefixHandler _prefixHandler
private DataSourceFactoryExtensionPoint _dataSourceFactoryEP
public DataInclusionEnhancementHandler()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
ServiceException
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void setPluginInfo(String pluginName, String featureName, String id)
PluginAware
setPluginInfo
in interface PluginAware
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this componentpublic void enableLogging(Logger logger)
enableLogging
in interface LogEnabled
enableLogging
in class AbstractLogEnabled
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class AbstractEnhancementHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class AbstractEnhancementHandler
SAXException
protected void _saxResult(Query query, QueryResult result) throws SAXException
query
- the query.result
- the result to generate.SAXException
- if an error occurs while saxingprotected void _saxSingleResult(Query query, QueryResult result) throws SAXException
query
- the queryresult
- the query's resultSAXException
- if an error occurs while saxingprotected Map<String,String> getParameters(Query query, Attributes atts)
query
- the query.atts
- the query node attributes.