public interface IComponentFactory
Modifier and Type | Method and Description |
---|---|
IFuture<Tuple2<IComponentInstance,IComponentAdapter>> |
createComponentInstance(IComponentDescription desc,
IComponentAdapterFactory factory,
IModelInfo model,
String config,
Map arguments,
IExternalAccess parent,
RequiredServiceBinding[] bindings,
boolean copy,
Future<Tuple2<IComponentInstance,IComponentAdapter>> ret)
Create a component instance.
|
IFuture<String> |
getComponentType(String model,
String[] imports,
ClassLoader classloader)
Get the component type of a model.
|
IFuture<Icon> |
getComponentTypeIcon(String type)
Get a default icon for a component type.
|
String[] |
getComponentTypes()
Get the names of component types supported by this factory.
|
Map |
getProperties(String type)
Get the properties (name/value pairs).
|
IFuture<Boolean> |
isLoadable(String model,
String[] imports,
ClassLoader classloader)
Test if a model can be loaded by the factory.
|
IFuture<Boolean> |
isStartable(String model,
String[] imports,
ClassLoader classloader)
Test if a model is startable (e.g. an component).
|
IFuture<IModelInfo> |
loadModel(String model,
String[] imports,
ClassLoader classloader)
Load a model.
|
IFuture<Icon> getComponentTypeIcon(String type)
String[] getComponentTypes()
IFuture<IModelInfo> loadModel(String model, String[] imports, ClassLoader classloader)
model
- The model (e.g. file name).The
- imports (if any).IFuture<Boolean> isLoadable(String model, String[] imports, ClassLoader classloader)
model
- The model (e.g. file name).The
- imports (if any).IFuture<Boolean> isStartable(String model, String[] imports, ClassLoader classloader)
model
- The model (e.g. file name).The
- imports (if any).IFuture<String> getComponentType(String model, String[] imports, ClassLoader classloader)
model
- The model (e.g. file name).The
- imports (if any).Map getProperties(String type)
type
- The component type.IFuture<Tuple2<IComponentInstance,IComponentAdapter>> createComponentInstance(IComponentDescription desc, IComponentAdapterFactory factory, IModelInfo model, String config, Map arguments, IExternalAccess parent, RequiredServiceBinding[] bindings, boolean copy, Future<Tuple2<IComponentInstance,IComponentAdapter>> ret)
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.