Class ApplicationLoaderService

  • All Implemented Interfaces:
    org.glassfish.hk2.api.PostConstruct, org.glassfish.hk2.api.PreDestroy

    @Service(name="ApplicationLoaderService")
    @RunLevel(value=15,
              mode=0)
    public class ApplicationLoaderService
    extends Object
    implements org.glassfish.hk2.api.PreDestroy, org.glassfish.hk2.api.PostConstruct
    This service is responsible for loading all deployed applications...
    Author:
    Jerome Dochez
    • Constructor Detail

      • ApplicationLoaderService

        public ApplicationLoaderService()
    • Method Detail

      • postConstruct

        public void postConstruct()
        Starts the application loader service. Look at the list of applications installed in our local repository Get a Deployer capable for each application found Invoke the deployer load() method for each application.
        Specified by:
        postConstruct in interface org.glassfish.hk2.api.PostConstruct
      • preDestroy

        public void preDestroy()
        Stopped all loaded applications
        Specified by:
        preDestroy in interface org.glassfish.hk2.api.PreDestroy