Top Description Fields Constructors Methods
org.jboss.modules

public final Class ResourceLoaderSpec

extends Object
Class Inheritance
Imports
org.jboss.modules.filter.PathFilter, .PathFilters

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

Field Summary

Modifier and TypeField and Description
pack-priv static final ResourceLoaderSpec[]
private final PathFilter
private final ResourceLoader

Constructor Summary

AccessConstructor and Description
pack-priv
ResourceLoaderSpec(final ResourceLoader resourceLoader, final PathFilter pathFilter)

Method Summary

Modifier and TypeMethod and Description
public static ResourceLoaderSpec

Returns:

the specification
createResourceLoaderSpec
(final ResourceLoader
the resource loader to include
resourceLoader
,
final PathFilter
the path filter to apply to the resource loader's paths
pathFilter
)

Construct a new instance.

public static ResourceLoaderSpec

Returns:

the specification
createResourceLoaderSpec
(final ResourceLoader
the resource loader to include
resourceLoader
)

Construct a new instance which accepts all paths in the resource loader.

pack-priv PathFilter
pack-priv ResourceLoader
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

NO_RESOURCE_LOADERSback to summary
pack-priv static final ResourceLoaderSpec[] NO_RESOURCE_LOADERS
pathFilterback to summary
private final PathFilter pathFilter
resourceLoaderback to summary
private final ResourceLoader resourceLoader

Constructor Detail

ResourceLoaderSpecback to summary
pack-priv ResourceLoaderSpec(final ResourceLoader resourceLoader, final PathFilter pathFilter)

Method Detail

createResourceLoaderSpecback to summary
public static ResourceLoaderSpec createResourceLoaderSpec(final ResourceLoader resourceLoader, final PathFilter pathFilter)

Construct a new instance.

Parameters
resourceLoader:ResourceLoader

the resource loader to include

pathFilter:PathFilter

the path filter to apply to the resource loader's paths

Returns:ResourceLoaderSpec

the specification

createResourceLoaderSpecback to summary
public static ResourceLoaderSpec createResourceLoaderSpec(final ResourceLoader resourceLoader)

Construct a new instance which accepts all paths in the resource loader.

Parameters
resourceLoader:ResourceLoader

the resource loader to include

Returns:ResourceLoaderSpec

the specification

getPathFilterback to summary
pack-priv PathFilter getPathFilter()
getResourceLoaderback to summary
pack-priv ResourceLoader getResourceLoader()