public class BpmnFactory extends BasicService implements IComponentFactory
Modifier and Type | Field and Description |
---|---|
static String |
FILETYPE_BPMNPROCESS
The micro agent file type.
|
EMPTY_SERVICES
Constructor and Description |
---|
BpmnFactory(IServiceProvider provider,
Map properties)
Create a new BpmnProcessService.
|
BpmnFactory(String providerid)
Create a new factory for startup.
|
Modifier and Type | Method and Description |
---|---|
IFuture<Tuple2<IComponentInstance,IComponentAdapter>> |
createComponentInstance(IComponentDescription desc,
IComponentAdapterFactory factory,
IModelInfo modelinfo,
String config,
Map arguments,
IExternalAccess parent,
RequiredServiceBinding[] bindings,
boolean copy,
Future<Tuple2<IComponentInstance,IComponentAdapter>> inited)
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 file type.
|
String[] |
getComponentTypes()
Get the names of ADF file types supported by this factory.
|
Map |
getProperties(String type)
Get the properties.
|
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 |
loadModel(String model,
String[] imports,
ClassLoader classloader)
Load a model.
|
IFuture<Void> |
shutdownService()
Shutdown the service.
|
createServiceIdentifier, createServiceIdentifier, equals, generateServiceName, getPropertyMap, getServiceIdentifier, isValid, setPropertyMap, startService
public static final String FILETYPE_BPMNPROCESS
public BpmnFactory(IServiceProvider provider, Map properties)
public BpmnFactory(String providerid)
platform
- The platform.public IFuture<Void> shutdownService()
shutdownService
in interface IInternalService
shutdownService
in class BasicService
listener
- The listener.public IFuture loadModel(String model, String[] imports, ClassLoader classloader)
loadModel
in interface IComponentFactory
model
- The model (e.g. file name).The
- imports (if any).public IFuture<Boolean> isLoadable(String model, String[] imports, ClassLoader classloader)
isLoadable
in interface IComponentFactory
model
- The model (e.g. file name).The
- imports (if any).public IFuture<Boolean> isStartable(String model, String[] imports, ClassLoader classloader)
isStartable
in interface IComponentFactory
model
- The model (e.g. file name).The
- imports (if any).public String[] getComponentTypes()
getComponentTypes
in interface IComponentFactory
public IFuture<Icon> getComponentTypeIcon(String type)
getComponentTypeIcon
in interface IComponentFactory
public IFuture<String> getComponentType(String model, String[] imports, ClassLoader classloader)
getComponentType
in interface IComponentFactory
model
- The model (e.g. file name).The
- imports (if any).public IFuture<Tuple2<IComponentInstance,IComponentAdapter>> createComponentInstance(IComponentDescription desc, IComponentAdapterFactory factory, IModelInfo modelinfo, String config, Map arguments, IExternalAccess parent, RequiredServiceBinding[] bindings, boolean copy, Future<Tuple2<IComponentInstance,IComponentAdapter>> inited)
createComponentInstance
in interface IComponentFactory
adapter
- The component adapter.model
- The component model.config
- The name of the configuration (or null for default configuration)arguments
- The arguments for the agent as name/value pairs.parent
- The parent component (if any).public Map getProperties(String type)
getProperties
in interface IComponentFactory
type
- The component type.Copyright © 2012. All Rights Reserved.