|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExtensionFactory
Extension Factories are used to provide a means of dynamically resolving builders for namespaced extension elements
There are four ways of supporting extension elements.
Registering an Extension Factory requires generally nothing more than implementing ExtensionFactory and then creating a file called META-INF/services/org.apache.abdera.factory.ExtensionFactory and listing the class names of each ExtensionFactory you wish to register.
ExtensionFactory implementations are assumed to be threadsafe
Method Summary | ||
---|---|---|
|
getElementWrapper(Element internal)
Abdera's support for static extensions is based on a simple delegation model. |
|
|
getMimeType(T base)
Retrieve the mime type for the element |
|
String[] |
getNamespaces()
Returns the Namespace URIs handled by this Extension Factory |
|
boolean |
handlesNamespace(String namespace)
Returns true if this extension factory handles the specified namespace |
Method Detail |
---|
boolean handlesNamespace(String namespace)
namespace
- The XML namespace of the extension
String[] getNamespaces()
<T extends Element> T getElementWrapper(Element internal)
internal
- The Abdera element that needs to be wrapped
<T extends Base> String getMimeType(T base)
base
- An Abdera object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |