Package org.jboss.modules
Class ResourceLoaderSpec
- java.lang.Object
-
- org.jboss.modules.ResourceLoaderSpec
-
public final class ResourceLoaderSpec extends java.lang.Object
A specification of a resource loader within a module. A resource loader may optionally be associated with a path filter which can be used to decide which paths of a resource loader to include.- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResourceLoaderSpec
createResourceLoaderSpec(ResourceLoader resourceLoader)
Construct a new instance which accepts all paths in the resource loader.static ResourceLoaderSpec
createResourceLoaderSpec(ResourceLoader resourceLoader, PathFilter pathFilter)
Construct a new instance.
-
-
-
Method Detail
-
createResourceLoaderSpec
public static ResourceLoaderSpec createResourceLoaderSpec(ResourceLoader resourceLoader, PathFilter pathFilter)
Construct a new instance.- Parameters:
resourceLoader
- the resource loader to includepathFilter
- the path filter to apply to the resource loader's paths- Returns:
- the specification
-
createResourceLoaderSpec
public static ResourceLoaderSpec createResourceLoaderSpec(ResourceLoader resourceLoader)
Construct a new instance which accepts all paths in the resource loader.- Parameters:
resourceLoader
- the resource loader to include- Returns:
- the specification
-
-