public final class AssetUtil extends Object
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String DELIMITER_CLASS_NAME_PATH
public static final String DELIMITER_RESOURCE_PATH
public static ArchivePath getPathForClassloaderResource(String resourceName)
resourceName
- The name of the resourcepublic 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 resourcepublic static ArchivePath getFullPathForClassResource(Class<?> clazz)
clazz
- public static ArchivePath getFullPathForClassResource(String className)
className
- Copyright © 2013 JBoss by Red Hat. All Rights Reserved.