Package com.sun.enterprise.v3.server
Class ApplicationLoaderService
- java.lang.Object
-
- com.sun.enterprise.v3.server.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
-
-
Field Summary
Fields Modifier and Type Field Description protected Applications
applications
protected Domain
domain
protected SystemApplications
systemApplications
-
Constructor Summary
Constructors Constructor Description ApplicationLoaderService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
postConstruct()
Starts the application loader service.void
preDestroy()
Stopped all loaded applicationsList<Deployment.ApplicationDeployment>
processApplication(Application app, ApplicationRef appRef)
String
toString()
-
-
-
Field Detail
-
applications
@Inject protected Applications applications
-
systemApplications
protected SystemApplications systemApplications
-
domain
protected Domain domain
-
-
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 interfaceorg.glassfish.hk2.api.PostConstruct
-
processApplication
public List<Deployment.ApplicationDeployment> processApplication(Application app, ApplicationRef appRef)
-
preDestroy
public void preDestroy()
Stopped all loaded applications- Specified by:
preDestroy
in interfaceorg.glassfish.hk2.api.PreDestroy
-
-