com.sun.enterprise.v3.server
Class ApplicationLoaderService

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.glassfish.api.Startup
Startup.Lifecycle
 
Field Summary
protected  Applications applications
           
protected  Domain domain
           
protected  SystemApplications systemApplications
           
 
Constructor Summary
ApplicationLoaderService()
           
 
Method Summary
 Startup.Lifecycle getLifecycle()
          Retuns the lifecyle of the service.
 void postConstruct()
          Starts the application loader service.
 void preDestroy()
          Stopped all loaded applications
 void processApplication(Application app, ApplicationRef appRef, Logger log)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

applications

protected Applications applications

systemApplications

protected SystemApplications systemApplications

domain

protected Domain domain
Constructor Detail

ApplicationLoaderService

public ApplicationLoaderService()
Method Detail

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.