|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.deployment.SubDeployerSupport (src)
org.jboss.web.AbstractWebContainer
A template pattern class for web container integration into JBoss. This class should be subclasses by web container providers wishing to integrate their container into a JBoss server.
AbstractWebDeployer
(src) Nested Class Summary | |
static interface |
AbstractWebContainer.WebDescriptorParser (src)
|
Nested classes inherited from class org.jboss.deployment.SubDeployerSupport (src) |
SubDeployerSupport.ClassConfiguration (src) |
Field Summary | |
protected boolean |
acceptNonWarDirs
A flag indicating if local dirs with WEB-INF/web.xml should be treated as wars |
protected java.lang.String |
defaultSecurityDomain
The default security-domain name to use |
static java.lang.String |
DEPLOYER
|
protected java.util.HashMap |
deploymentMap
A mapping of deployed warUrl strings to the WebApplication object |
static java.lang.String |
ERROR
|
protected boolean |
java2ClassLoadingCompliance
The parent class loader first model flag |
protected boolean |
lenientEjbLink
If true, ejb-links that don't resolve don't cause an error (fallback to jndi-name) |
protected boolean |
unpackWars
A flag indicating if war archives should be unpacked |
static java.lang.String |
WEB_APP
|
static java.lang.String |
WEB_MODULE
|
Fields inherited from class org.jboss.deployment.SubDeployerSupport (src) |
CONFIGURATION, mainDeployer, nativePrefix, nativeSuffix, relativeOrder, suffixes, tempDeployDir |
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.deployment.SubDeployer (src) |
CREATE_NOTIFICATION, DESTROY_NOTIFICATION, INIT_NOTIFICATION, RELATIVE_ORDER_100, RELATIVE_ORDER_200, RELATIVE_ORDER_300, RELATIVE_ORDER_400, RELATIVE_ORDER_500, RELATIVE_ORDER_600, RELATIVE_ORDER_700, RELATIVE_ORDER_800, RELATIVE_ORDER_900, START_NOTIFICATION, STOP_NOTIFICATION |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
AbstractWebContainer()
|
Method Summary | |
boolean |
accepts(DeploymentInfo (src) sdi)
The accepts method is called by MainDeployer to
determine which deployer is suitable for a DeploymentInfo. |
void |
addDeployedApp(java.net.URL warURL,
WebApplication (src) webApp)
|
void |
create(DeploymentInfo (src) di)
Create a WebModule service, register it under the name "jboss.web.deployment:war="+di.shortName and invoke the ServiceController.create(jmxname, depends) using the depends found in the WebMetaData. |
void |
destroy(DeploymentInfo (src) di)
Invokes the ServiceController.destroy(jmxName) to destroy the WebModule and its dependents. |
boolean |
getAcceptNonWarDirs()
Get the flag indicating if local dirs with WEB-INF/web.xml should be treated as wars |
static java.net.URL[] |
getClassLoaderURLs(java.lang.ClassLoader cl)
Use reflection to access a URL[] getURLs method so that non-URLClassLoader class loaders that support this method can provide info. |
java.lang.String[] |
getCompileClasspath(java.lang.ClassLoader loader)
A utility method that walks up the ClassLoader chain starting at the given loader and queries each ClassLoader for a 'URL[] getURLs()' method from which a complete classpath of URL strings is built. |
org.w3c.dom.Element |
getConfig()
An accessor for any configuration element set via setConfig. |
java.lang.String |
getDefaultSecurityDomain()
Get the default security domain implementation to use if a war does not declare a security-domain. |
WebApplication (src) |
getDeployedApp(java.lang.String warUrl)
Get the WebApplication object for a deployed war. |
java.util.Iterator |
getDeployedApplications()
Returns the applications deployed by the web container subclasses. |
abstract AbstractWebDeployer (src) |
getDeployer(DeploymentInfo (src) di)
|
boolean |
getJava2ClassLoadingCompliance()
Get the flag indicating if the normal Java2 parent first class loading model should be used over the servlet 2.3 web container first model. |
boolean |
getLenientEjbLink()
Get the flag indicating if ejb-link errors should be ignored in favour of trying the jndi-name in jboss-web.xml |
java.lang.String |
getSubjectAttributeName()
Get the session attribute number under which the caller Subject is stored |
boolean |
getUnpackWars()
Set the flag indicating if war archives should be unpacked. |
void |
init(DeploymentInfo (src) di)
Sub-classes should override this method to provide custom 'init' logic. |
boolean |
isDeployed(java.lang.String warUrl)
See if a war is deployed. |
protected void |
parseMetaData(java.lang.String ctxPath,
java.net.URL warURL,
java.lang.String warName,
WebMetaData (src) metaData)
This method creates a context-root string from either the WEB-INF/jboss-web.xml context-root element is one exists, or the filename portion of the warURL. |
protected void |
processNestedDeployments(DeploymentInfo (src) di)
WARs do not have nested deployments |
WebApplication (src) |
removeDeployedApp(java.net.URL warURL)
|
void |
setAcceptNonWarDirs(boolean flag)
Set the flag indicating if local dirs with WEB-INF/web.xml should be treated as wars |
void |
setConfig(org.w3c.dom.Element config)
This method is invoked to import an arbitrary XML configuration tree. |
void |
setDefaultSecurityDomain(java.lang.String defaultSecurityDomain)
Set the default security domain implementation to use if a war does not declare a security-domain. |
void |
setJava2ClassLoadingCompliance(boolean flag)
Set the flag indicating if the normal Java2 parent first class loading model should be used over the servlet 2.3 web container first model. |
void |
setLenientEjbLink(boolean flag)
Set the flag indicating if ejb-link errors should be ignored in favour of trying the jndi-name in jboss-web.xml |
void |
setSubjectAttributeName(java.lang.String subjectAttributeName)
Set the session attribute number under which the caller Subject is stored |
void |
setUnpackWars(boolean flag)
Get the flag indicating if war archives should be unpacked. |
void |
start(DeploymentInfo (src) di)
Invokes the ServiceController.start(jmxName) to start the WebModule after its dependencies are satisfied. |
protected void |
startService()
Performs SubDeployer registration. |
void |
stop(DeploymentInfo (src) di)
Invokes the ServiceController.start(jmxName) to stop the WebModule and its dependents. |
Methods inherited from class org.jboss.deployment.SubDeployerSupport (src) |
addDeployableFiles, addDeployableJar, createService, deployUrl, destroyService, emitNotification, getRelativeOrder, getSuffixes, isDeployable, setRelativeOrder, setSuffixes, stopService |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, destroy, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.deployment.SubDeployer (src) |
getServiceName |
Field Detail |
public static final java.lang.String DEPLOYER
public static final java.lang.String WEB_APP
public static final java.lang.String WEB_MODULE
public static final java.lang.String ERROR
protected java.util.HashMap deploymentMap
protected boolean java2ClassLoadingCompliance
protected boolean unpackWars
protected boolean acceptNonWarDirs
protected boolean lenientEjbLink
protected java.lang.String defaultSecurityDomain
Constructor Detail |
public AbstractWebContainer()
Method Detail |
public boolean getJava2ClassLoadingCompliance()
public void setJava2ClassLoadingCompliance(boolean flag)
flag
- true for parent first, false for the servlet 2.3 modelpublic boolean getUnpackWars()
public void setUnpackWars(boolean flag)
flag
- , true is war archives should be unpackedpublic boolean getAcceptNonWarDirs()
public void setAcceptNonWarDirs(boolean flag)
flag
- - true if local dirs with WEB-INF/web.xml should be treated as warspublic boolean getLenientEjbLink()
public void setLenientEjbLink(boolean flag)
public java.lang.String getDefaultSecurityDomain()
public void setDefaultSecurityDomain(java.lang.String defaultSecurityDomain)
defaultSecurityDomain
- - jndi name of the security domain binding
to use.public java.lang.String getSubjectAttributeName()
public void setSubjectAttributeName(java.lang.String subjectAttributeName)
public abstract AbstractWebDeployer (src) getDeployer(DeploymentInfo (src) di) throws java.lang.Exception
java.lang.Exception
public boolean accepts(DeploymentInfo (src) sdi)
SubDeployer (src)
accepts
method is called by MainDeployer to
determine which deployer is suitable for a DeploymentInfo.
sdi
- a DeploymentInfo
value
boolean
valuepublic void init(DeploymentInfo (src) di) throws DeploymentException (src)
SubDeployerSupport (src)
This method calls the processNestedDeployments(di) method and then issues a JMX notification of type SubDeployer.INIT_NOTIFICATION. This behaviour can overridden by concrete sub-classes. If further initialization needs to be done, and you wish to preserve the functionality, be sure to call super.init(di) at the end of your implementation.
init
in interface SubDeployer (src)
init
in class SubDeployerSupport (src)
DeploymentException (src)
public void create(DeploymentInfo (src) di) throws DeploymentException (src)
create
in interface SubDeployer (src)
create
in class SubDeployerSupport (src)
di
- - The deployment info for the war
DeploymentException (src)
public void start(DeploymentInfo (src) di) throws DeploymentException (src)
start
in interface SubDeployer (src)
start
in class SubDeployerSupport (src)
di
- - The deployment info for the war
DeploymentException (src)
public void stop(DeploymentInfo (src) di) throws DeploymentException (src)
stop
in interface SubDeployer (src)
stop
in class SubDeployerSupport (src)
di
- - The deployment info for the war
DeploymentException (src)
public void destroy(DeploymentInfo (src) di) throws DeploymentException (src)
destroy
in interface SubDeployer (src)
destroy
in class SubDeployerSupport (src)
di
- - The deployment info for the war
DeploymentException (src)
public boolean isDeployed(java.lang.String warUrl)
public void addDeployedApp(java.net.URL warURL, WebApplication (src) webApp)
public WebApplication (src) getDeployedApp(java.lang.String warUrl)
warUrl
- the war url string as originally passed to deploy().
public WebApplication (src) removeDeployedApp(java.net.URL warURL)
public java.util.Iterator getDeployedApplications()
public org.w3c.dom.Element getConfig()
public void setConfig(org.w3c.dom.Element config)
public static java.net.URL[] getClassLoaderURLs(java.lang.ClassLoader cl)
public java.lang.String[] getCompileClasspath(java.lang.ClassLoader loader)
protected void processNestedDeployments(DeploymentInfo (src) di) throws DeploymentException (src)
processNestedDeployments
in class SubDeployerSupport (src)
di
-
DeploymentException (src)
protected void startService() throws java.lang.Exception
SubDeployerSupport (src)
startService
in class SubDeployerSupport (src)
java.lang.Exception
protected void parseMetaData(java.lang.String ctxPath, java.net.URL warURL, java.lang.String warName, WebMetaData (src) metaData) throws DeploymentException (src)
DeploymentException (src)
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |