public final class LibraryMapping extends Object
ComponentClassResolver
, to allow it to map prefixes to library root packages (the
application namespace is a special case of this). In each case, a prefix on the path is mapped to a package. Starting
with Tapestry 5.2, the path prefix may not contain a slash character.
The root package name should have a number of sub-packages:
Constructor and Description |
---|
LibraryMapping(String virtualFolderName,
String rootPackage)
Maps a virtual folder to a package that contains sub-packages for components, pages, etc.
|
Modifier and Type | Method and Description |
---|---|
String |
getPathPrefix()
Returns the virtual folder name (the odd name of this method reflects the evolution of the framework).
|
String |
getRootPackage() |
String |
toString() |
public LibraryMapping(String virtualFolderName, String rootPackage)
ComponentClassResolver
, and the results are merged (though conflicts, where the same simple name appears
under multiple root packages, is not currently checked for).virtualFolderName
- identifies the virtual folder "containing" the pages and components of the library. This may contain an embedded slash, but not a leading or trailing slash.rootPackage
- The root package to search.public String getPathPrefix()
public String getRootPackage()
Copyright © 2003-2012 The Apache Software Foundation.