public final class AssetUtil extends Object
Util class to help extract name/paths from Assets.
| 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
i.e.: 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 - The class whose resource path is to be extracted.ArchivePath representing the full path of the class resource.public static ArchivePath getFullPathForClassResource(String className)
className - The name of the class whose resource path is to be extracted.ArchivePath representing the full path of the class resource.Copyright © 2024 JBoss by Red Hat. All rights reserved.