| org.cougaar.planning.plugin.legacy.SimplePlugin org.cougaar.mlm.plugin.xml.XMLPrototypeProviderPlugin
XMLPrototypeProviderPlugin | public class XMLPrototypeProviderPlugin extends SimplePlugin implements PrototypeProvider(Code) | |
This plugin is a prototype provider that attempts to supply
prototypes by looking for XML files by name. It finds the prototype
file by using the ConfigFinder mechanism, and parses it using the
toolkit prototype XML Parser. If successful, it will cache and return the
generated prototype.
NOTE : The name of the prototype is modified to
change '/' characters to '-' characters to allow for O/S compatibility:
Example : Prototype "NSN/1234567890123" looks for a
file NSN-1234567890123.xml
See Also: org.cougaar.lib.xml.parser.PrototypeParser.cachePrototype See Also: org.cougaar.util.ConfigFinder.parseXMLConfigFile |
execute | public void execute()(Code) | | no subscriptions -- nothing happens here
|
getLoggingService | protected LoggingService getLoggingService()(Code) | | Get the logging service, for subclass use.
|
getPrototype | public Asset getPrototype(String aTypeName, Class ignoredAnAssetClassHint)(Code) | |
Interface required for PrototypeProvider
If possible, Create a prototype from XML file given by name
.xml and cache and return prototype
Otherwise, return null
Parameters: aTypeName - name of the Prototype to create Parameters: ignoredAnAssetClassHint - class hint not used, since we read from a file asset prototype if we can find and parse the file, null otherwise |
setLoggingService | final public void setLoggingService(LoggingService bs)(Code) | | Rely upon load-time introspection to set these services -
don't worry about revokation.
|
setupSubscriptions | public void setupSubscriptions()(Code) | | While this is a plugin, we only expect it to operate
as a prototype provider. No subscriptions are made here.
|
|
|