Class AbstractComponentFeature

    • Field Detail

      • guesser

        protected jadex.commons.IParameterGuesser guesser
        The parameter guesser.
    • Method Detail

      • getInternalAccess

        public IInternalAccess getInternalAccess()
        Get the component access.
      • init

        public jadex.commons.future.IFuture<java.lang.Void> init()
        Initialize the feature. Empty implementation that can be overridden.
        Specified by:
        init in interface IComponentFeature
      • body

        public jadex.commons.future.IFuture<java.lang.Void> body()
        Execute the main activity of the feature.
        Specified by:
        body in interface IComponentFeature
      • hasUserBody

        public boolean hasUserBody()
        Check if the feature potentially executed user code in body. Allows blocking operations in user bodies by using separate steps for each feature. Non-user-body-features are directly executed for speed. If unsure just return true. ;-)
        Specified by:
        hasUserBody in interface IComponentFeature
      • shutdown

        public jadex.commons.future.IFuture<java.lang.Void> shutdown()
        Shutdown the feature.
        Specified by:
        shutdown in interface IComponentFeature
      • kill

        public void kill()
        Kill is only invoked, when shutdown of some (e.g. other) feature does not return due to timeout. The feature should do any kind of possible cleanup, but no asynchronous operations.
        Specified by:
        kill in interface IComponentFeature
      • getExternalFacade

        public <T> T getExternalFacade​(java.lang.Object context)
        Get external feature facade.
      • getExternalFacadeType

        public <T> java.lang.Class<T> getExternalFacadeType​(java.lang.Object context)
      • getValueFetcher

        public jadex.commons.IValueFetcher getValueFetcher()
        The feature can inject parameters for expression evaluation by providing an optional value fetcher. The fetch order is the reverse init order, i.e., later features can override values from earlier features.
        Specified by:
        getValueFetcher in interface IComponentFeature
      • getParameterGuesser

        public jadex.commons.IParameterGuesser getParameterGuesser()
        The feature can add objects for field or method injections by providing an optional parameter guesser. The selection order is the reverse init order, i.e., later features can override values from earlier features.
        Specified by:
        getParameterGuesser in interface IComponentFeature
      • getClockService

        public IClockService getClockService()
        Get the clock service.
        Returns:
        The clock service.
      • getExecutionService

        public IExecutionService getExecutionService()
        Get the execution service.
        Returns:
        The execution service.