public interface ITocEntryFactory<T extends TocEntryObject>
ITocEntryFactory implementation is used to load TocEntryObjects of a given type
identified by their XML tag.
To make a ITocEntryFactory available during design time, it has to be registered with the
org.faktorips.devtools.stdbuilder.tocEntryFactory extension point.
At runtime, the extension point mechanism is not available, instead the ServiceLoader is
used. For the ServiceLoader to find the implementation, the full qualified name of the
implementation class must be specified in the file
META-INF/services/org.faktorips.runtime.internal.toc.ITocEntryFactory.
The file and the implementation class must be accessible by the ClassLoader
provided to the AbstractReadonlyTableOfContents's constructor.
| Modifier and Type | Method and Description |
|---|---|
T |
createFromXml(Element entryElement)
Creates a
TocEntryObject from it's XML representation. |
String |
getXmlTag()
Returns the XML tag identifying a
TocEntryObject this factory can create. |
T createFromXml(Element entryElement)
TocEntryObject from it's XML representation.entryElement - the XML element representing the TocEntryObjectTocEntryObjectString getXmlTag()
TocEntryObject this factory can create.TocEntryObject this factory can createCopyright © 2018. All rights reserved.