|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectthinkmap.xmlconfig.tags.Plugin
public class Plugin
Plugin allows a class to be registered with the XML configuration system. Once a plugin has been registered, the element can then be used to create and configure objects of that class.
| Field Summary | |
|---|---|
protected IBuilder |
builder
|
protected Class<? extends IBuilder> |
builderClass
|
protected String |
className
|
protected String |
element
|
protected boolean |
lazy
|
protected String |
namespaceURI
|
protected Namespace |
ns
|
protected URL |
url
|
protected boolean |
userDefined
|
| Constructor Summary | |
|---|---|
Plugin()
|
|
| Method Summary | |
|---|---|
XObject |
build(Assembler assembler,
ConfigElement thisElement,
ConfigElement parent,
XObject object,
XObject parentObject)
|
protected IBuilder |
getBuilder()
|
String |
getClassName()
|
String |
getNamespace()
|
URL |
getURL()
|
boolean |
isLazy()
|
boolean |
isUserDefined()
|
Class<?> |
loadClass()
|
void |
setBuilderClass(Class<? extends IBuilder> c)
Set the class that will be used to build this plugin. |
void |
setClass(String className)
Set the name of the class to register. |
void |
setElement(String element)
Set the xml element name the class should be regsitered under. |
void |
setLazy(boolean b)
Set to true if you would like this plugin to load upon its first use. |
void |
setNamespace(String namespace)
Set the namespace of the element this plugin creates. |
void |
setURL(URL href)
Set the URL of the XMLComponent to register. |
static Assembler |
wrapAssembler(Assembler assembler)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean lazy
protected boolean userDefined
protected String namespaceURI
protected String className
protected String element
protected IBuilder builder
protected URL url
protected Namespace ns
protected Class<? extends IBuilder> builderClass
| Constructor Detail |
|---|
public Plugin()
| Method Detail |
|---|
public void setClass(String className)
className - class namepublic void setURL(URL href)
href - the URL of the XMLComponent to register.public URL getURL()
public void setElement(String element)
element - element namepublic void setLazy(boolean b)
b - public boolean isLazy()
public void setNamespace(String namespace)
namespace - namespacepublic String getNamespace()
protected IBuilder getBuilder()
throws XMLException
XMLException
public Class<?> loadClass()
throws Exception
Exceptionpublic String getClassName()
public void setBuilderClass(Class<? extends IBuilder> c)
c - the class that will be used to build this plugin.public boolean isUserDefined()
public XObject build(Assembler assembler,
ConfigElement thisElement,
ConfigElement parent,
XObject object,
XObject parentObject)
throws XMLException
build in interface IConfigTagXMLExceptionpublic static Assembler wrapAssembler(Assembler assembler)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||