public static final class TaglibFactory.ClasspathMetaInfTldSource extends TaglibFactory.MetaInfTldSource
META-INF/**
/*.tld
inside classpath root containers, that is, in directories
and jar-s that are in the classpath (or are visible for the class loader otherwise). It will only search inside
those roots whose URL matches the pattern specified in the constructor. It correctly handles when multiple roots
contain a TLD with the same name (typically, META-INF/taglib.tld
), that is, those TLD-s won't shadow each
other, all of them will be loaded independently.
Note that this TLD discovery mechanism is not part of the JSP specification.
Constructor and Description |
---|
ClasspathMetaInfTldSource(java.util.regex.Pattern rootContainerPattern) |
Modifier and Type | Method and Description |
---|---|
java.util.regex.Pattern |
getRootContainerPattern()
See constructor argument:
#ClasspathMetaInfTldSource(Pattern) . |
public ClasspathMetaInfTldSource(java.util.regex.Pattern rootContainerPattern)
rootContainerPattern
- The pattern against which the classpath root container URL-s will be matched. For example, to only
search in jar-s whose name ends with "taglib", the patter should be ".*taglib\.jar$"
. To
search everywhere, the pattern should be ".*"
. The pattern need to match the whole URL,
not just part of it.