public final class LibraryMapping extends Object
ComponentClassResolver, to allow it to map library names 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.
The root package name should have a number of sub-packages:
ComponentLibraryInfo| Modifier and Type | Field and Description |
|---|---|
String |
libraryName |
String |
rootPackage |
| Constructor and Description |
|---|
LibraryMapping(String libraryName,
String rootPackage)
Identifies the root package of a library.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPathPrefix()
Deprecated.
In 5.4, use
libraryName instead. |
String |
getRootPackage() |
String |
toString() |
public final String libraryName
public final String rootPackage
public LibraryMapping(String libraryName, String rootPackage)
ComponentClassResolver, and the results are merged: the single library will have multiple root packages.
Be careful that none of the root packages overlap!libraryName - the unique identifier for the library.rootPackage - the root package to search for classes; sub-packages will include ".pages", ".components", etc.public String getPathPrefix()
libraryName instead.public String getRootPackage()
5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.