|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjadex.bridge.service.BasicService
jadex.application.ApplicationComponentFactory
public class ApplicationComponentFactory
Factory for default contexts. No special properties supported, yet.
| Field Summary | |
|---|---|
static String |
FILETYPE_APPLICATION
The application component file type. |
protected static UIDefaults |
icons
The image icons. |
protected ILibraryServiceListener |
libservicelistener
The library service listener |
protected ApplicationModelLoader |
loader
The application model loader. |
protected IServiceProvider |
provider
The provider. |
| Fields inherited from class jadex.bridge.service.BasicService |
|---|
idcnt, properties, providerid, shutdowned, sid, started, type |
| Fields inherited from interface jadex.bridge.service.IService |
|---|
EMPTY_SERVICES |
| Constructor Summary | |
|---|---|
ApplicationComponentFactory(IServiceProvider provider)
Create a new application factory. |
|
ApplicationComponentFactory(String providerid)
Create a new application factory for startup. |
|
| Method Summary | |
|---|---|
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>> 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 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<IModelInfo> |
loadModel(String model,
String[] imports,
ClassLoader classloader)
Load a model. |
IFuture<Void> |
shutdownService()
Shutdown the service. |
IFuture<Void> |
startService()
Start the service. |
| Methods inherited from class jadex.bridge.service.BasicService |
|---|
createServiceIdentifier, createServiceIdentifier, equals, generateServiceName, getPropertyMap, getServiceIdentifier, isValid, setPropertyMap |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FILETYPE_APPLICATION
protected static final UIDefaults icons
protected ApplicationModelLoader loader
protected IServiceProvider provider
protected ILibraryServiceListener libservicelistener
| Constructor Detail |
|---|
public ApplicationComponentFactory(String providerid)
platform - The platform.mappings - The XML reader mappings of supported spaces (if any).public ApplicationComponentFactory(IServiceProvider provider)
platform - The platform.mappings - The XML reader mappings of supported spaces (if any).| Method Detail |
|---|
public IFuture<Void> startService()
startService in interface IInternalServicestartService in class BasicServicepublic IFuture<Void> shutdownService()
shutdownService in interface IInternalServiceshutdownService in class BasicServicelistener - The listener.
public IFuture<IModelInfo> loadModel(String model,
String[] imports,
ClassLoader classloader)
loadModel in interface IComponentFactorymodel - 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>> ret)
createComponentInstance in interface IComponentFactoryadapter - The component adapter.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).
public IFuture<Boolean> isLoadable(String model,
String[] imports,
ClassLoader classloader)
isLoadable in interface IComponentFactorymodel - The model (e.g. file name).The - imports (if any).
public IFuture<Boolean> isStartable(String model,
String[] imports,
ClassLoader classloader)
isStartable in interface IComponentFactorymodel - The model (e.g. file name).The - imports (if any).
public String[] getComponentTypes()
getComponentTypes in interface IComponentFactorypublic IFuture<Icon> getComponentTypeIcon(String type)
getComponentTypeIcon in interface IComponentFactory
public IFuture<String> getComponentType(String model,
String[] imports,
ClassLoader classloader)
getComponentType in interface IComponentFactorymodel - The model (e.g. file name).The - imports (if any).public Map getProperties(String type)
getProperties in interface IComponentFactorytype - The component type.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||