Class Resource.ResourceOnClassloader
- java.lang.Object
-
- com.adelean.inject.resources.core.Resource.ResourceOnClassloader
-
- Enclosing class:
- Resource
public static final class Resource.ResourceOnClassloader extends java.lang.ObjectBuilder for resource that is present on classpath of suppliedClassLoader.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourcewithPath(java.lang.String firstPathToken, java.lang.String... otherTokens)Returns builder for resource with definedpathon a classpath of classloader of this builder.
-
-
-
Method Detail
-
withPath
public Resource withPath(java.lang.String firstPathToken, java.lang.String... otherTokens)
Returns builder for resource with definedpathon a classpath of classloader of this builder.Those two operations are equivalent:
withPath("/com/adelean/junit/jupiter/resource.txt") // equivalent to withPath("/com/adelean/junit/jupiter", "resource.txt")- Parameters:
firstPathToken- path of resource, it least one tokenotherTokens- path of resource, allows multiple tokens- Returns:
Resourceresource builder
-
-