|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.commons.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.commons.service.BasicService |
|---|
idcnt, properties, shutdowned, sid, started, startfutures |
| Fields inherited from interface jadex.commons.service.IService |
|---|
EMPTY_SERVICES |
| Constructor Summary | |
|---|---|
ApplicationComponentFactory(IServiceProvider provider)
Create a new application factory. |
|
ApplicationComponentFactory(Set[] mappings,
IServiceProvider provider)
Create a new application factory. |
|
ApplicationComponentFactory(String providerid)
Create a new application factory for startup. |
|
| Method Summary | |
|---|---|
Object[] |
createComponentInstance(IComponentDescription desc,
IComponentAdapterFactory factory,
IModelInfo modelinfo,
String config,
Map arguments,
IExternalAccess parent,
Future ret)
Create a component instance. |
String |
getComponentType(String model,
String[] imports,
ClassLoader classloader)
Get the component type of a model. |
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. |
boolean |
isLoadable(String model,
String[] imports,
ClassLoader classloader)
Test if a model can be loaded by the factory. |
boolean |
isStartable(String model,
String[] imports,
ClassLoader classloader)
Test if a model is startable (e.g. an component). |
IModelInfo |
loadModel(String model,
String[] imports,
ClassLoader classloader)
Load a model. |
IFuture |
shutdownService()
Shutdown the service. |
| Methods inherited from class jadex.commons.service.BasicService |
|---|
createServiceIdentifier, generateServiceName, getPropertyMap, getServiceIdentifier, isValid, setPropertyMap, signalStarted, startService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jadex.commons.service.IService |
|---|
getPropertyMap, getServiceIdentifier, signalStarted |
| 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(IServiceProvider provider)
public ApplicationComponentFactory(String providerid)
platform - The platform.mappings - The XML reader mappings of supported spaces (if any).
public ApplicationComponentFactory(Set[] mappings,
IServiceProvider provider)
platform - The platform.mappings - The XML reader mappings of supported spaces (if any).| Method Detail |
|---|
public IFuture shutdownService()
shutdownService in interface IInternalServiceshutdownService in class BasicServicelistener - The listener.
public IModelInfo loadModel(String model,
String[] imports,
ClassLoader classloader)
loadModel in interface IComponentFactorymodel - The model (e.g. file name).The - imports (if any).
public Object[] createComponentInstance(IComponentDescription desc,
IComponentAdapterFactory factory,
IModelInfo modelinfo,
String config,
Map arguments,
IExternalAccess parent,
Future 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 boolean isLoadable(String model,
String[] imports,
ClassLoader classloader)
isLoadable in interface IComponentFactorymodel - The model (e.g. file name).The - imports (if any).
public 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 Icon getComponentTypeIcon(String type)
getComponentTypeIcon in interface IComponentFactory
public 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 | |||||||||