|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.dpml.lang.Part
net.dpml.lang.Plugin
public class Plugin
Plugin part strategy implementation datatype.
| Field Summary |
|---|
| Fields inherited from class net.dpml.lang.Part |
|---|
PART_FOOTER, PART_HEADER, PART_SCHEMA_URN, VALUE_ENCODER, XML_HEADER |
| Constructor Summary | |
|---|---|
Plugin(Logger logger,
Info info,
Classpath classpath,
String classname)
Creation of an new plugin datatype. |
|
Plugin(Logger logger,
Info info,
Classpath classpath,
String classname,
Value[] params)
Creation of an new plugin datatype. |
|
| Method Summary | |
|---|---|
protected void |
encodeStrategy(Writer writer,
String pad)
Encode the pluginstrategy to XML. |
boolean |
equals(Object other)
Test if this instance is equal to the supllied object. |
String |
getClassname()
Get the target classname. |
protected Object |
getContent(Class c)
Return the part content or null if the result type is unresolvable relative to the supplied class argument. |
Class |
getPluginClass()
Get the default plugin class. |
Value[] |
getValues()
Get the array of default constructor values. |
int |
hashCode()
Get the has code for this instance. |
static Object |
instantiate(Class clazz,
Object[] args)
Create a factory using a supplied class and command line arguments. |
Object |
instantiate(Object[] args)
Instantiate a value. |
| Methods inherited from class net.dpml.lang.Part |
|---|
encode, getClassLoader, getClasspath, getContent, getContent, getInfo, getLogger, load, load |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Plugin(Logger logger,
Info info,
Classpath classpath,
String classname)
throws IOException
logger - the assigned logging channelinfo - the part info descriptorclasspath - the classpath descriptorclassname - the target class
IOException - if an I/O error occurs
public Plugin(Logger logger,
Info info,
Classpath classpath,
String classname,
Value[] params)
throws IOException
logger - the assigned logging channelinfo - the part info descriptorclasspath - the classpath descriptorclassname - the target classparams - an array of default value arguments
IOException - if an I/O error occurs| Method Detail |
|---|
protected Object getContent(Class c)
throws IOException
getContent in class Partc - the content class
IOException - if an IO error occurspublic String getClassname()
public Value[] getValues()
public Class getPluginClass()
public Object instantiate(Object[] args)
throws Exception
instantiate in class Partargs - supplimentary arguments
Exception - if a deployment error occurspublic boolean equals(Object other)
equals in class Partother - the other object
public int hashCode()
hashCode in class Part
protected void encodeStrategy(Writer writer,
String pad)
throws IOException
encodeStrategy in class Partwriter - the output stream writerpad - the character offset
IOException - if an I/O error occurs
public static Object instantiate(Class clazz,
Object[] args)
throws IOException,
InvocationTargetException
clazz - the the factory classargs - the command line args
IOException - if a plugin creation error occurs
InvocationTargetException - if a plugin constructor invocation error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||