public class ReaderXmlContextBuilderConfigurator extends XmlContextBuilderConfigurator
Represents a configurator based on XML read from a Reader
. Polling is not supported by this kind of
configurator.
PollingScheduler.Polling
Constructor and Description |
---|
ReaderXmlContextBuilderConfigurator(Reader r,
String t,
Boolean multiple,
ProcessContext processContext)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected Long |
getLastUpdateTimestampFor(String path)
Retrieves a timestamp that indicates the last time this nut has changed.
|
String |
getTag()
Gets the tag to use to identify the set of settings defined when
ContextBuilderConfigurator.configure(ContextBuilder)
is called. |
protected XmlWuicBean |
unmarshal(Unmarshaller unmarshaller)
Unmashal the
XmlWuicBean with the given unmarhalled. |
configureHeap, configureTemplates, configureWorkflow, getProcessContext, internalConfigure
configure, run, setMultipleConfigurations
getNutObservers, getPollingInterval, observe, setPollingInterval
public ReaderXmlContextBuilderConfigurator(Reader r, String t, Boolean multiple, ProcessContext processContext) throws JAXBException
Creates a new instance.
r
- the reader to XMLt
- the tagmultiple
- true
if multiple configurations with the same tag could be executed, false
otherwiseprocessContext
- the process contextJAXBException
- if an context can't be initializedpublic String getTag()
Gets the tag to use to identify the set of settings defined when ContextBuilderConfigurator.configure(ContextBuilder)
is called.
getTag
in class ContextBuilderConfigurator
protected Long getLastUpdateTimestampFor(String path) throws IOException
Retrieves a timestamp that indicates the last time this nut has changed.
getLastUpdateTimestampFor
in class PollingScheduler<ContextBuilderConfigurator>
path
- the real path of the nutIOException
- if any I/O error occursprotected XmlWuicBean unmarshal(Unmarshaller unmarshaller) throws JAXBException
Unmashal the XmlWuicBean
with the given unmarhalled.
unmarshal
in class XmlContextBuilderConfigurator
unmarshaller
- the unmarshallerJAXBException
- if the XML can't be readCopyright © 2012-2015. All Rights Reserved.