|
ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.shrinkwrap.impl.base.asset.AssetUtil
public final class AssetUtil
AssetUtil Util class to help extract name/paths from Assets.
Field Summary | |
---|---|
static String |
DELIMITER_CLASS_NAME_PATH
The delimiter used for classes. |
static String |
DELIMITER_RESOURCE_PATH
The delimiter used for classes represented in resource form. |
Method Summary | |
---|---|
static String |
getClassLoaderResourceName(Package resourcePackage,
String resourceName)
Helper to convert from java package name to class loader package name ie: javax.test + my.txt = javax/test/ + my.txt |
static ArchivePath |
getFullPathForClassResource(Class<?> clazz)
Helper to extract a ClassResources full path. |
static ArchivePath |
getFullPathForClassResource(String className)
Helper to extract a ClassResources full path. |
static String |
getNameForClassloaderResource(String resourceName)
Helper to extract a ClassloaderResources name. |
static ArchivePath |
getPathForClassloaderResource(String resourceName)
Helper to extract a ClassloaderResources path information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DELIMITER_CLASS_NAME_PATH
public static final String DELIMITER_RESOURCE_PATH
Method Detail |
---|
public static ArchivePath getPathForClassloaderResource(String resourceName)
resourceName
- The name of the resource
public static String getClassLoaderResourceName(Package resourcePackage, String resourceName)
resourcePackage
- The base packageresourceName
- The resource inside the package.
ClassLoader
resource locationpublic static String getNameForClassloaderResource(String resourceName)
resourceName
- The name of the resource
public static ArchivePath getFullPathForClassResource(Class<?> clazz)
clazz
-
public static ArchivePath getFullPathForClassResource(String className)
className
-
|
ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |