Package org.glassfish.kernel.jakartaee
Class WebContainerStarter
- java.lang.Object
-
- org.glassfish.kernel.jakartaee.WebContainerStarter
-
- All Implemented Interfaces:
org.glassfish.hk2.api.PostConstruct
,ConfigListener
@Service @RunLevel(10) public class WebContainerStarter extends Object implements org.glassfish.hk2.api.PostConstruct, ConfigListener
Startup service for the web container. This service checks if any domain.xml configuration, or changes in such configuration, that can be handled only by the web container (e.g., access logging) have been specified, and if so, starts the web container (unless already started).- Author:
- jluehe
-
-
Field Summary
Fields Modifier and Type Field Description static String
mStartContainerDone
static String
mUnableStartContainer
static String
mUnableStartContainerNoException
static String
mWebContainerNotInstalled
-
Constructor Summary
Constructors Constructor Description WebContainerStarter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnprocessedChangeEvents
changed(PropertyChangeEvent[] events)
Notification that @Configured objects that were injected have changedvoid
postConstruct()
Scans the domain.xml to see if it specifies any configuration that can be handled only by the web container, and if so, starts the web container
-
-
-
Field Detail
-
mWebContainerNotInstalled
public static final String mWebContainerNotInstalled
- See Also:
- Constant Field Values
-
mStartContainerDone
public static final String mStartContainerDone
- See Also:
- Constant Field Values
-
mUnableStartContainerNoException
public static final String mUnableStartContainerNoException
- See Also:
- Constant Field Values
-
mUnableStartContainer
public static final String mUnableStartContainer
- See Also:
- Constant Field Values
-
-
Method Detail
-
postConstruct
public void postConstruct()
Scans the domain.xml to see if it specifies any configuration that can be handled only by the web container, and if so, starts the web container- Specified by:
postConstruct
in interfaceorg.glassfish.hk2.api.PostConstruct
-
changed
public UnprocessedChangeEvents changed(PropertyChangeEvent[] events)
Description copied from interface:ConfigListener
Notification that @Configured objects that were injected have changed- Specified by:
changed
in interfaceConfigListener
- Parameters:
events
- list of changes- Returns:
- the list of unprocessed events (requiring a restart) or null if all reconfiguration was processed successfully
-
-