Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Function<ClassPath.ClassInfo,String> |
CLASS_INFO_TO_CLASS_NAME |
static com.google.common.base.Function<ClassPath.ResourceInfo,String> |
RESOURCE_INFO_TO_RESOURCE_NAME |
Modifier and Type | Method and Description |
---|---|
static Set<ClassPath.ResourceInfo> |
getClassPathResources(ClassLoader classLoader,
Class<?> cls)
Returns a set of
ClassPath.ResourceInfo required for the specified Class using the specified
ClassLoader . |
static Set<String> |
getResourcesWithDependencies(ClassLoader classLoader,
Class<?> classz)
Returns the base set of resources needed to load the specified
Class using the
specified ClassLoader . |
public static final com.google.common.base.Function<ClassPath.ClassInfo,String> CLASS_INFO_TO_CLASS_NAME
public static final com.google.common.base.Function<ClassPath.ResourceInfo,String> RESOURCE_INFO_TO_RESOURCE_NAME
public static Set<String> getResourcesWithDependencies(ClassLoader classLoader, Class<?> classz) throws IOException
Class
using the
specified ClassLoader
. Also traces and includes the dependencies for the specified class.classLoader
- the ClassLoader
to use to generate the set of resourcesclassz
- the Class
to generate the set of resources forClass
using the specified ClassLoader
IOException
public static Set<ClassPath.ResourceInfo> getClassPathResources(ClassLoader classLoader, Class<?> cls) throws IOException
ClassPath.ResourceInfo
required for the specified Class
using the specified
ClassLoader
. Does not trace dependencies of the specified class.classLoader
- the ClassLoader
to use to return the set of ClassPath.ResourceInfo
for the specified
Class
cls
- the Class
for which to return the set of ClassPath.ResourceInfo
ClassPath.ResourceInfo
required for the specified Class
using the specified
ClassLoader
IOException
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.