com.sun.enterprise.v3.server
Class ApplicationLoaderService
java.lang.Object
com.sun.enterprise.v3.server.ApplicationLoaderService
- All Implemented Interfaces:
- Startup, org.glassfish.hk2.PostConstruct, org.glassfish.hk2.PreDestroy
@Priority(value=8)
@Service(name="ApplicationLoaderService")
public class ApplicationLoaderService
- extends Object
- implements Startup, org.jvnet.hk2.component.PreDestroy, org.jvnet.hk2.component.PostConstruct
This service is responsible for loading all deployed applications...
- Author:
- Jerome Dochez
applications
protected Applications applications
systemApplications
protected SystemApplications systemApplications
domain
protected Domain domain
ApplicationLoaderService
public ApplicationLoaderService()
getLifecycle
public Startup.Lifecycle getLifecycle()
- Retuns the lifecyle of the service.
Once the applications are loaded, this service does not need to remain
available
- Specified by:
getLifecycle in interface Startup
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.PostConstruct
processApplication
public void processApplication(Application app,
ApplicationRef appRef,
Logger log)
toString
public String toString()
- Overrides:
toString in class Object
preDestroy
public void preDestroy()
- Stopped all loaded applications
- Specified by:
preDestroy in interface org.glassfish.hk2.PreDestroy
Copyright © 2012. All Rights Reserved.