| org.cougaar.core.plugin.ComponentPlugin org.cougaar.pizza.plugin.KitchenPrototypePlugin
KitchenPrototypePlugin | public class KitchenPrototypePlugin extends ComponentPlugin (Code) | | This Plugin creates and publishes the Pizza Provider Kitchen Asset object which identifies
what kind of pizza a provider's kitchen can make. This plugin does not require any inputs,
it simply creates and registers the prototype and then publishes the kitchen asset instances.
Note that this plugin will only run once since there are no inputs(subscriptions) to cause it to run.
|
Method Summary | |
protected void | execute() No subscriptions to process, so this method does nothing. | public void | load() Get the plugin parameters and our planning factory when our component is loaded. | public void | setDomainService(DomainService aDomainService) Used by the binding utility through introspection to set my DomainService
Services that are required for plugin usage should be set through reflection instead of explicitly
getting each service from your ServiceBroker in the load method. | public void | setPrototypeRegistryService(PrototypeRegistryService aPrototypeRegistryService) | protected void | setupSubscriptions() Generally used to initalize plugin subscriptions. |
execute | protected void execute()(Code) | | No subscriptions to process, so this method does nothing.
|
load | public void load()(Code) | | Get the plugin parameters and our planning factory when our component is loaded.
If we want additional services that are not required for the plugin, we should get them in load.
However, if the component gets a service in load, it should override the unload() method and
release the services.
|
setDomainService | public void setDomainService(DomainService aDomainService)(Code) | | Used by the binding utility through introspection to set my DomainService
Services that are required for plugin usage should be set through reflection instead of explicitly
getting each service from your ServiceBroker in the load method. The setter methods are called after
the component is constructed but before the state methods such as initialize, load, setupSubscriptions, etc.
If the service is not available at that time the component will be unloaded.
|
setPrototypeRegistryService | public void setPrototypeRegistryService(PrototypeRegistryService aPrototypeRegistryService)(Code) | | Used by the binding utility through introspection to set my PrototypeRegistryService
|
setupSubscriptions | protected void setupSubscriptions()(Code) | | Generally used to initalize plugin subscriptions. But in this case, we will use it to
create our Kitchen assets since we have no subscriptions and we want to publish the assets
as soon as we can.
|
|
|