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,
boolean copy,
boolean realtime,
IIntermediateResultListener<Tuple2<String,Object>> resultlistener,
Future<Void> init)
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. an component).
|
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, boolean copy, boolean realtime, IIntermediateResultListener<Tuple2<String,Object>> resultlistener, Future<Void> init)
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).Copyright © 2012. All Rights Reserved.