public interface IComponentFactory
Modifier and Type | Method and Description |
---|---|
IFuture<Tuple2<IComponentInstance,IComponentAdapter>> |
createComponentInstance(IComponentDescription desc,
IComponentAdapterFactory factory,
IModelInfo model,
String config,
Map<String,Object> arguments,
IExternalAccess parent,
RequiredServiceBinding[] bindings,
ProvidedServiceInfo[] pinfos,
boolean copy,
boolean realtime,
boolean persist,
IPersistInfo persistinfo,
IIntermediateResultListener<Tuple2<String,Object>> resultlistener,
Future<Void> init,
LocalServiceRegistry registry)
Create a component instance.
|
IFuture<String> |
getComponentType(String model,
String[] imports,
IResourceIdentifier rid)
Get the component type of a model.
|
IFuture<byte[]> |
getComponentTypeIcon(String type)
Get a default icon for a component type.
|
String[] |
getComponentTypes()
Get the names of component types supported by this factory.
|
Map<String,Object> |
getProperties(String type)
Get the properties (name/value pairs).
|
IFuture<Boolean> |
isLoadable(String model,
String[] imports,
IResourceIdentifier rid)
Test if a model can be loaded by the factory.
|
IFuture<Boolean> |
isStartable(String model,
String[] imports,
IResourceIdentifier rid)
Test if a model is startable (e.g.
|
IFuture<IModelInfo> |
loadModel(String model,
String[] imports,
IResourceIdentifier rid)
Load a model.
|
IFuture<byte[]> getComponentTypeIcon(String type)
String[] getComponentTypes()
IFuture<IModelInfo> loadModel(String model, String[] imports, IResourceIdentifier rid)
model
- The model (e.g. file name).The
- imports (if any).IFuture<Boolean> isLoadable(String model, String[] imports, IResourceIdentifier rid)
model
- The model (e.g. file name).The
- imports (if any).IFuture<Boolean> isStartable(String model, String[] imports, IResourceIdentifier rid)
model
- The model (e.g. file name).The
- imports (if any).IFuture<String> getComponentType(String model, String[] imports, IResourceIdentifier rid)
model
- The model (e.g. file name).The
- imports (if any).Map<String,Object> getProperties(String type)
type
- The component type.IFuture<Tuple2<IComponentInstance,IComponentAdapter>> createComponentInstance(IComponentDescription desc, IComponentAdapterFactory factory, IModelInfo model, String config, Map<String,Object> arguments, IExternalAccess parent, RequiredServiceBinding[] bindings, ProvidedServiceInfo[] pinfos, boolean copy, boolean realtime, boolean persist, IPersistInfo persistinfo, IIntermediateResultListener<Tuple2<String,Object>> resultlistener, Future<Void> init, LocalServiceRegistry registry)
desc
- The component description.factory
- The component adapter factory.model
- The component model.config
- The name of the configuration (or null for default configuration)arguments
- The arguments for the component as name/value pairs.parent
- The parent component (if any).bindings
- Optional bindings to override bindings from model.pinfos
- Optional provided service infos to override settings from model.copy
- Global flag for parameter copying.realtime
- Global flag for real time timeouts.persist
- Global flag for persistence support.resultlistener
- Optional listener to be notified when the component finishes.init
- Future to be notified when init of the component is completed.Copyright © 2015. All Rights Reserved.