Class MicroserviceFactory

    • Field Detail

      • FILETYPES

        public static final java.lang.String[] FILETYPES
        The supported component types (file extensions). Convention used by platform config panel.
      • FILETYPE_MICROSERVICE

        public static final java.lang.String FILETYPE_MICROSERVICE
        The micro agent file type.
        See Also:
        Constant Field Values
      • ICON

        protected static final LazyResource ICON
        The image icon.
      • fproperties

        protected java.util.Map<java.lang.String,​java.lang.Object> fproperties
        The properties.
    • Constructor Detail

      • MicroserviceFactory

        public MicroserviceFactory​(IInternalAccess provider,
                                   java.util.Map<java.lang.String,​java.lang.Object> properties)
        Create a new agent factory.
      • MicroserviceFactory

        public MicroserviceFactory​(java.lang.String providerid)
        Create a new agent factory for startup.
        Parameters:
        platform - The platform.
    • Method Detail

      • isLoadable

        public 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.
        Specified by:
        isLoadable in interface IComponentFactory
        Parameters:
        model - The model (e.g. file name).
        The - imports (if any).
        Returns:
        True, if model can be loaded.
      • isStartable

        public IFuture<java.lang.Boolean> isStartable​(java.lang.String model,
                                                      java.lang.String[] imports,
                                                      IResourceIdentifier rid)
        Test if a model is startable (e.g. an component).
        Specified by:
        isStartable in interface IComponentFactory
        Parameters:
        model - The model (e.g. file name).
        The - imports (if any).
        Returns:
        True, if startable (and loadable).
      • getComponentTypes

        public java.lang.String[] getComponentTypes()
        Get the names of ADF file types supported by this factory.
        Specified by:
        getComponentTypes in interface IComponentFactory
      • getComponentType

        public IFuture<java.lang.String> getComponentType​(java.lang.String model,
                                                          java.lang.String[] imports,
                                                          IResourceIdentifier rid)
        Get the component type of a model.
        Specified by:
        getComponentType in interface IComponentFactory
        Parameters:
        model - The model (e.g. file name).
        The - imports (if any).
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getProperties​(java.lang.String type)
        Get the properties. Arbitrary properties that can e.g. be used to define kernel-specific settings to configure tools.
        Specified by:
        getProperties in interface IComponentFactory
        Parameters:
        type - The component type.
        Returns:
        The properties or null, if the component type is not supported by this factory.
      • getMicroAgentClass

        protected java.lang.Class<?> getMicroAgentClass​(java.lang.String clname,
                                                        java.lang.String[] imports,
                                                        java.lang.ClassLoader classloader)
        Get the mirco agent class.
      • getLibraryService

        protected ILibraryService getLibraryService()
        Get the library service