Package jadex.tools.web.starter
Class JCCStarterPluginAgent
- java.lang.Object
-
- jadex.tools.web.jcc.JCCPluginAgent
-
- jadex.tools.web.starter.JCCStarterPluginAgent
-
- All Implemented Interfaces:
IJCCPluginService
,IJCCStarterService
public class JCCStarterPluginAgent extends JCCPluginAgent implements IJCCStarterService
Starter web jcc plugin.
-
-
Field Summary
-
Fields inherited from class jadex.tools.web.jcc.JCCPluginAgent
agent, component
-
-
Constructor Summary
Constructors Constructor Description JCCStarterPluginAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<IComponentIdentifier>
createComponent(CreationInfo ci, IComponentIdentifier cid)
Create a component for a model.IFuture<IComponentDescription[]>
getComponentDescriptions(IComponentIdentifier cid)
Get the component descriptions.IFuture<java.util.Collection<java.lang.String[]>>
getComponentModels(IComponentIdentifier cid)
Get all startable component models.IFuture<java.util.Map<java.lang.String,INFPropertyMetaInfo>>
getNFPropertyMetaInfos(IComponentIdentifier cid, IServiceIdentifier sid, MethodInfo mi, java.lang.Boolean req)
Returns the meta information about a non-functional property of this service.IFuture<java.util.Map<java.lang.String,java.lang.Object>>
getNFPropertyValues(IComponentIdentifier cid, IServiceIdentifier sid, MethodInfo mi, java.lang.Boolean req, java.lang.String name)
Returns the values about a non-functional property of this service.IFuture<java.lang.Object>
getNFValue(IComponentIdentifier cid, IServiceIdentifier sid, MethodInfo mi, java.lang.Boolean req, java.lang.String name)
Get the value of a nf property by name.IFuture<java.lang.String>
getPluginName()
Get the plugin name.java.lang.String
getPluginUIPath()
Get the plugin UI path.IFuture<java.lang.Integer>
getPriority()
Get the plugin priority.IFuture<java.lang.Object[]>
getServiceInfos(IComponentIdentifier cid)
Get infos about services (provided, required).IFuture<byte[]>
loadComponentIcon(java.lang.String type, IComponentIdentifier cid)
Get a default icon for a file type.IFuture<IModelInfo>
loadComponentModel(java.lang.String filename, IComponentIdentifier cid)
Load a component model.ISubscriptionIntermediateFuture<CMSStatusEvent>
subscribeToComponentChanges(IComponentIdentifier cid)
Subscribe to component events-
Methods inherited from class jadex.tools.web.jcc.JCCPluginAgent
getAgent, getPluginComponent, internalLoadResource, loadResource
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jadex.tools.web.jcc.IJCCPluginService
getPluginComponent, loadResource
-
-
-
-
Method Detail
-
getPluginName
public IFuture<java.lang.String> getPluginName()
Get the plugin name.- Specified by:
getPluginName
in interfaceIJCCPluginService
- Specified by:
getPluginName
in classJCCPluginAgent
- Returns:
- The plugin name.
-
getPriority
public IFuture<java.lang.Integer> getPriority()
Get the plugin priority.- Specified by:
getPriority
in interfaceIJCCPluginService
- Specified by:
getPriority
in classJCCPluginAgent
- Returns:
- The plugin priority.
-
getPluginUIPath
public java.lang.String getPluginUIPath()
Get the plugin UI path.- Specified by:
getPluginUIPath
in classJCCPluginAgent
- Returns:
- The plugin ui path.
-
getComponentModels
public IFuture<java.util.Collection<java.lang.String[]>> getComponentModels(IComponentIdentifier cid)
Get all startable component models.- Specified by:
getComponentModels
in interfaceIJCCStarterService
- Returns:
- The file names of the component models.
-
createComponent
public IFuture<IComponentIdentifier> createComponent(CreationInfo ci, IComponentIdentifier cid)
Create a component for a model.- Specified by:
createComponent
in interfaceIJCCStarterService
- Parameters:
ci
- The creation info.- Returns:
- The component id.
-
loadComponentModel
public IFuture<IModelInfo> loadComponentModel(java.lang.String filename, IComponentIdentifier cid)
Load a component model.- Specified by:
loadComponentModel
in interfaceIJCCStarterService
- Parameters:
filename
- The filename.- Returns:
- The component model.
-
getComponentDescriptions
public IFuture<IComponentDescription[]> getComponentDescriptions(IComponentIdentifier cid)
Get the component descriptions.- Specified by:
getComponentDescriptions
in interfaceIJCCStarterService
- Returns:
- The component descriptions.
-
loadComponentIcon
public IFuture<byte[]> loadComponentIcon(java.lang.String type, IComponentIdentifier cid)
Get a default icon for a file type.- Specified by:
loadComponentIcon
in interfaceIJCCStarterService
-
subscribeToComponentChanges
public ISubscriptionIntermediateFuture<CMSStatusEvent> subscribeToComponentChanges(IComponentIdentifier cid)
Subscribe to component events- Specified by:
subscribeToComponentChanges
in interfaceIJCCStarterService
-
getServiceInfos
public IFuture<java.lang.Object[]> getServiceInfos(IComponentIdentifier cid)
Get infos about services (provided, required).- Specified by:
getServiceInfos
in interfaceIJCCStarterService
- Parameters:
cid
- The component id
-
getNFPropertyMetaInfos
public IFuture<java.util.Map<java.lang.String,INFPropertyMetaInfo>> getNFPropertyMetaInfos(IComponentIdentifier cid, IServiceIdentifier sid, MethodInfo mi, java.lang.Boolean req)
Returns the meta information about a non-functional property of this service.- Specified by:
getNFPropertyMetaInfos
in interfaceIJCCStarterService
- Parameters:
cid
- The component id.- Returns:
- The meta information about a non-functional property of this service.
-
getNFValue
public IFuture<java.lang.Object> getNFValue(IComponentIdentifier cid, IServiceIdentifier sid, MethodInfo mi, java.lang.Boolean req, java.lang.String name)
Get the value of a nf property by name.- Parameters:
name
- The prop name.- Returns:
- The value.
-
getNFPropertyValues
public IFuture<java.util.Map<java.lang.String,java.lang.Object>> getNFPropertyValues(IComponentIdentifier cid, IServiceIdentifier sid, MethodInfo mi, java.lang.Boolean req, java.lang.String name)
Returns the values about a non-functional property of this service.- Specified by:
getNFPropertyValues
in interfaceIJCCStarterService
- Parameters:
cid
- The component id.- Returns:
- The meta information about a non-functional property of this service.
-
-