org.eclipse.jetty.osgi.boot.jsp
Class TagLibOSGiConfiguration

java.lang.Object
  extended by org.eclipse.jetty.webapp.AbstractConfiguration
      extended by org.eclipse.jetty.webapp.TagLibConfiguration
          extended by org.eclipse.jetty.osgi.boot.jsp.TagLibOSGiConfiguration
All Implemented Interfaces:
Configuration

public class TagLibOSGiConfiguration
extends TagLibConfiguration

Replacement for TagLibConfiguration for the OSGi integration.

In the case of a WAB, tlds can be located in OSGi bundles that are dependencies of the WAB. It is expected that each WAB lists the symbolic-names of the bundles that contain tld files. The list is defined as the value of the header 'Require-TldBundle'

Discussions about this are logged in https://bugs.eclipse.org/bugs/show_bug.cgi?id=306971


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jetty.webapp.TagLibConfiguration
TagLibConfiguration.TagLibListener, TagLibConfiguration.TldDescriptor, TagLibConfiguration.TldProcessor
 
Field Summary
 
Fields inherited from class org.eclipse.jetty.webapp.TagLibConfiguration
TLD_RESOURCES
 
Constructor Summary
TagLibOSGiConfiguration()
           
 
Method Summary
 void preConfigure(WebAppContext context)
          Override the preConfigure; locates the bundles that contain tld files according to the value of the manifest header Require-TldBundle.
 
Methods inherited from class org.eclipse.jetty.webapp.TagLibConfiguration
cloneConfigure, configure, deconfigure, postConfigure
 
Methods inherited from class org.eclipse.jetty.webapp.AbstractConfiguration
destroy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagLibOSGiConfiguration

public TagLibOSGiConfiguration()
Method Detail

preConfigure

public void preConfigure(WebAppContext context)
                  throws Exception
Override the preConfigure; locates the bundles that contain tld files according to the value of the manifest header Require-TldBundle.

Set or add to the property TldProcessor.TLDResources the list of located jars so that the super class will scan those.

Specified by:
preConfigure in interface Configuration
Overrides:
preConfigure in class TagLibConfiguration
Parameters:
context - The context to configure
Throws:
Exception


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.