org.apache.geronimo.jasper.deployment
Class JspModuleBuilderExtension
java.lang.Object
org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension
- All Implemented Interfaces:
- ModuleBuilderExtension
public class JspModuleBuilderExtension
- extends Object
- implements ModuleBuilderExtension
This JSP module builder extension is meant to find all the TLD descriptor files associated with a
deployable artifact, search those TLD files for listeners, search those listeners for
annotations, and ultimately create a ClassFinder using those annoated classes (for later
processing by the various naming builders)
Method Summary |
void |
addGBeans(EARContext earContext,
Module module,
ClassLoader cl,
Collection repository)
|
protected static org.apache.geronimo.xbeans.javaee.TaglibDocument |
convertToTaglibSchema(org.apache.xmlbeans.XmlObject xmlObject)
convertToTaglibSchema(): Convert older TLD files based on the 1.1 and 1.2 DTD or the 2.0 XSD
schemas
Note(s):
Those tags from the 1.1 and 1.2 DTD that are no longer valid (e.g., jsp-version) are
removed
Valid tags from the 1.1 and 1.2 DTD are converted (e.g., tlibversion to
tlib-version)
The root and the root elements are reordered as necessary (i.e.,
description, display-name)
The tag is inserted in the <attribute> tag if necessary since it was
not required to preceed in 2.0 schema. |
protected org.apache.xbean.finder.ClassFinder |
createJspClassFinder(org.apache.geronimo.xbeans.javaee.WebAppType webApp,
WebModule webModule,
Set<String> listenerNames)
|
void |
createModule(Module module,
Object plan,
JarFile moduleFile,
String targetPath,
URL specDDUrl,
Environment environment,
Object moduleContextInfo,
AbstractName earName,
Naming naming,
ModuleIDBuilder idBuilder)
|
static GBeanInfo |
getGBeanInfo()
|
void |
initContext(EARContext earContext,
Module module,
ClassLoader cl)
|
void |
installModule(JarFile earFile,
EARContext earContext,
Module module,
Collection configurationStores,
ConfigurationStore targetConfigurationStore,
Collection repository)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GBEAN_INFO
public static final GBeanInfo GBEAN_INFO
JspModuleBuilderExtension
public JspModuleBuilderExtension(Environment defaultEnvironment,
NamingBuilder namingBuilders)
createModule
public void createModule(Module module,
Object plan,
JarFile moduleFile,
String targetPath,
URL specDDUrl,
Environment environment,
Object moduleContextInfo,
AbstractName earName,
Naming naming,
ModuleIDBuilder idBuilder)
throws DeploymentException
- Specified by:
createModule
in interface ModuleBuilderExtension
- Throws:
DeploymentException
installModule
public void installModule(JarFile earFile,
EARContext earContext,
Module module,
Collection configurationStores,
ConfigurationStore targetConfigurationStore,
Collection repository)
throws DeploymentException
- Specified by:
installModule
in interface ModuleBuilderExtension
- Throws:
DeploymentException
initContext
public void initContext(EARContext earContext,
Module module,
ClassLoader cl)
throws DeploymentException
- Specified by:
initContext
in interface ModuleBuilderExtension
- Throws:
DeploymentException
addGBeans
public void addGBeans(EARContext earContext,
Module module,
ClassLoader cl,
Collection repository)
throws DeploymentException
- Specified by:
addGBeans
in interface ModuleBuilderExtension
- Throws:
DeploymentException
createJspClassFinder
protected org.apache.xbean.finder.ClassFinder createJspClassFinder(org.apache.geronimo.xbeans.javaee.WebAppType webApp,
WebModule webModule,
Set<String> listenerNames)
throws DeploymentException
- Throws:
DeploymentException
convertToTaglibSchema
protected static org.apache.geronimo.xbeans.javaee.TaglibDocument convertToTaglibSchema(org.apache.xmlbeans.XmlObject xmlObject)
throws org.apache.xmlbeans.XmlException
- convertToTaglibSchema(): Convert older TLD files based on the 1.1 and 1.2 DTD or the 2.0 XSD
schemas
Note(s):
- Those tags from the 1.1 and 1.2 DTD that are no longer valid (e.g., jsp-version) are
removed
- Valid tags from the 1.1 and 1.2 DTD are converted (e.g., tlibversion to
tlib-version)
- The root and the root elements are reordered as necessary (i.e.,
description, display-name)
- The tag is inserted in the <attribute> tag if necessary since it was
not required to preceed in 2.0 schema. Default value of false is used.
- Parameters:
xmlObject
- possibly old-style tag lib document
- Returns:
- converted TagLibDocument in the new shiny schema
- Throws:
org.apache.xmlbeans.XmlException
- if something goes horribly wrong
getGBeanInfo
public static GBeanInfo getGBeanInfo()
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.