org.glassfish.deployment.autodeploy
Class AutoDeployService

java.lang.Object
  extended by org.glassfish.deployment.autodeploy.AutoDeployService
All Implemented Interfaces:
org.glassfish.hk2.PostConstruct, org.glassfish.hk2.PreDestroy, org.jvnet.hk2.config.ConfigListener

@Service
@Scoped(value=org.jvnet.hk2.component.Singleton.class)
public class AutoDeployService
extends Object
implements org.jvnet.hk2.component.PostConstruct, org.jvnet.hk2.component.PreDestroy, org.jvnet.hk2.config.ConfigListener

A service wrapper around the autodeployer.

The module system will start this service during GlassFish start-up. In turn it will start the actual autodeployer to run periodically.

Note that some values used by the service are known when the class is first started. Others can be configured dynamically. The first type are initialized during postConstruct. The others will trigger the delivery of config change events to which we respond and, as needed, stop or reschedule the timer task.

Author:
tjquinn

Constructor Summary
AutoDeployService()
           
 
Method Summary
 org.jvnet.hk2.config.UnprocessedChangeEvents changed(PropertyChangeEvent[] events)
           
 void postConstruct()
           
 void preDestroy()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoDeployService

public AutoDeployService()
Method Detail

postConstruct

public void postConstruct()
Specified by:
postConstruct in interface org.glassfish.hk2.PostConstruct

preDestroy

public void preDestroy()
Specified by:
preDestroy in interface org.glassfish.hk2.PreDestroy

changed

public org.jvnet.hk2.config.UnprocessedChangeEvents changed(PropertyChangeEvent[] events)
Specified by:
changed in interface org.jvnet.hk2.config.ConfigListener


Copyright © 2012. All Rights Reserved.