public class BDIXComponentFactory extends BasicService implements IComponentFactory
| Modifier and Type | Field and Description | 
|---|---|
| static java.util.Collection<IComponentFeatureFactory> | BDI_FEATURESThe specific component features for micro agents. | 
| protected java.util.Collection<IComponentFeatureFactory> | featuresThe standard + XML component features. | 
| static java.lang.String | FILETYPE_AGENTThe agent file type name. | 
| static java.lang.String | FILETYPE_CAPABILITYThe agent file type name. | 
| static java.lang.String[] | FILETYPESThe supported component types (file extensions). | 
| protected static LazyResource | ICON_AGENTThe agent icon. | 
| protected static LazyResource | ICON_CAPABILITYThe capability icon. | 
| protected ILibraryService | libserviceThe library service. | 
| protected ILibraryServiceListener | libservicelistenerThe library service listener | 
| protected BDIXModelLoader | loaderThe application model loader. | 
| protected IInternalAccess | providerThe provider. | 
idcnt, impltype, internalaccess, providerid, shutdowned, sid, started, typeEMPTY_SERVICES| Constructor and Description | 
|---|
| BDIXComponentFactory(IInternalAccess provider,
                    java.util.Map<java.lang.String,java.lang.Object> properties)Create a new component factory. | 
| BDIXComponentFactory(java.lang.String providerid)Create a new component factory for startup. | 
| Modifier and Type | Method and Description | 
|---|---|
| IFuture<java.util.Collection<IComponentFeatureFactory>> | getComponentFeatures(IModelInfo model)Get the component features for a model. | 
| IFuture<java.lang.String> | getComponentType(java.lang.String model,
                java.lang.String[] imports,
                IResourceIdentifier rid)Get the component type of a model. | 
| IFuture<byte[]> | getComponentTypeIcon(java.lang.String type)Get a default icon for a file type. | 
| java.lang.String[] | getComponentTypes()Get the names of ADF file types supported by this factory. | 
| java.util.Map<java.lang.String,java.lang.Object> | getProperties(java.lang.String type)Get the properties. | 
| IFuture<java.lang.Boolean> | isLoadable(java.lang.String model,
          java.lang.String[] imports,
          IResourceIdentifier rid)Test if a model can be loaded by the factory. | 
| IFuture<java.lang.Boolean> | isStartable(java.lang.String model,
           java.lang.String[] imports,
           IResourceIdentifier rid)Test if a model is startable (e.g. | 
| IFuture<IModelInfo> | loadModel(java.lang.String model,
         java.lang.String[] imports,
         IResourceIdentifier rid)Load a  model. | 
| IFuture<java.lang.Void> | shutdownService()Shutdown the service. | 
| IFuture<java.lang.Void> | startService()Start the service. | 
| IFuture<java.lang.Void> | startService(IInternalAccess component,
            IResourceIdentifier rid)Start the service. | 
createServiceIdentifier, createServiceIdentifier, equals, generateServiceName, getInterfaceType, getInternalAccess, getMethodTimeout, getPropertyMap, getProviderId, getServiceIdentifier, hashCode, initNFProperties, isValid, setComponentAccess, setPropertyMap, toStringpublic static final java.lang.String[] FILETYPES
public static final java.lang.String FILETYPE_AGENT
public static final java.lang.String FILETYPE_CAPABILITY
protected static final LazyResource ICON_AGENT
protected static final LazyResource ICON_CAPABILITY
public static final java.util.Collection<IComponentFeatureFactory> BDI_FEATURES
protected BDIXModelLoader loader
protected IInternalAccess provider
protected ILibraryService libservice
protected ILibraryServiceListener libservicelistener
protected java.util.Collection<IComponentFeatureFactory> features
public BDIXComponentFactory(java.lang.String providerid)
providerid - The platform name.public BDIXComponentFactory(IInternalAccess provider, java.util.Map<java.lang.String,java.lang.Object> properties)
provider - The component.public IFuture<java.lang.Void> startService(IInternalAccess component, IResourceIdentifier rid)
public IFuture<java.lang.Void> startService()
startService in interface IInternalServicestartService in class BasicServicepublic IFuture<java.lang.Void> shutdownService()
shutdownService in interface IInternalServiceshutdownService in class BasicServicelistener - The listener.public IFuture<IModelInfo> loadModel(java.lang.String model, java.lang.String[] imports, IResourceIdentifier rid)
loadModel in interface IComponentFactorymodel - The model (e.g. file name).The - imports (if any).public IFuture<java.lang.Boolean> isLoadable(java.lang.String model, java.lang.String[] imports, IResourceIdentifier rid)
isLoadable in interface IComponentFactorymodel - The model (e.g. file name).The - imports (if any).public IFuture<java.lang.Boolean> isStartable(java.lang.String model, java.lang.String[] imports, IResourceIdentifier rid)
isStartable in interface IComponentFactorymodel - The model (e.g. file name).The - imports (if any).public java.lang.String[] getComponentTypes()
getComponentTypes in interface IComponentFactorypublic IFuture<byte[]> getComponentTypeIcon(java.lang.String type)
getComponentTypeIcon in interface IComponentFactorypublic IFuture<java.lang.String> getComponentType(java.lang.String model, java.lang.String[] imports, IResourceIdentifier rid)
getComponentType in interface IComponentFactorymodel - The model (e.g. file name).The - imports (if any).public java.util.Map<java.lang.String,java.lang.Object> getProperties(java.lang.String type)
getProperties in interface IComponentFactorytype - The component type.public IFuture<java.util.Collection<IComponentFeatureFactory>> getComponentFeatures(IModelInfo model)
getComponentFeatures in interface IComponentFactorymodel - The component model.