Class InitialisedInjectedService

    • Constructor Detail

      • InitialisedInjectedService

        public InitialisedInjectedService​(Logger logger)
        Creates an injected service that can be initialised by the platform. It assumes that there are no other services required.
        Parameters:
        logger - The logger which to use for this service. This will only be used until initialisation by the platform. Afterwards the logger of the AbstractADEPT2Service will be used.
      • InitialisedInjectedService

        public InitialisedInjectedService​(Logger logger,
                                          String[] startupRequiredServices,
                                          String[] runtimeRequiredServices,
                                          Class<?> cls)
        Creates an injected service that can be initialised by the platform. It uses the designated services from the platform.
        Parameters:
        logger - The logger which to use for this service. This will only be used until initialisation by the platform. Afterwards the logger of the AbstractADEPT2Service will be used.
        startupRequiredServices - The service type names of services required at startup time (in init(URI[], URI[]) and start()). This may be null.
        runtimeRequiredServices - The service type names of services required at runtime (after startup time). This may be null.
        cls - The class which to use for the logger provided by AbstractADEPT2Service, this is usually the interface of the service.