|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xdoclet.PluginFactory
This class is responsible for discovering pluggable components such as
MetadataProvider
s and Plugin
s that are available on the
classpath. In order to be discovered, these classes must be declared as
Java Beans in their MANIFEST.MF file, and they must also be accompanied
with a BeanInfo class.
BeanInfo classes can be generated automatically with the built-in
BeanInfoPlugin
.
Constructor Summary | |
PluginFactory(ClasspathManager classpathManager)
Constructs a new PluginFactory. |
Method Summary | |
MetadataProvider |
createMetadataProvider(String name,
XDoclet xdoclet)
|
Plugin |
createPlugin(String pluginName,
XDoclet xdoclet)
Creates a new plugin and attaches it to an XDoclet instance. |
ClasspathManager |
getClasspathManager()
Gets that ClasspathManager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PluginFactory(ClasspathManager classpathManager)
classpathManager
- the classpathManager to useMethod Detail |
public ClasspathManager getClasspathManager()
public final Plugin createPlugin(String pluginName, XDoclet xdoclet) throws XDocletException
pluginName
- the name of the plugin, as specified in xdoclet-plugin.xmlxdoclet
- the XDoclet instance that will contain the created plugin
XDocletException
- if there is no registered plugin for pluginName, or if the corresponding plugin
is not allowed within the XDoclet instance. What XDoclet (sub)classes are allowed is declared
in the plugin's deployment descriptor.public MetadataProvider createMetadataProvider(String name, XDoclet xdoclet) throws XDocletException
XDocletException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |