public interface FilteringPathResourceImplementation extends PathResourceImplementation
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_INCLUDES
Property name to fire in case
FilteringPathResourceImplementation.includes(java.net.URL, java.lang.String) would change. |
PROP_ROOTS| Modifier and Type | Method and Description |
|---|---|
boolean |
includes(URL root,
String resource)
Determines whether a given resource is included in the classpath or not.
|
addPropertyChangeListener, getContent, getRoots, removePropertyChangeListenerstatic final String PROP_INCLUDES
FilteringPathResourceImplementation.includes(java.net.URL, java.lang.String) would change.
(The old and new value should be left null.)
Special usage note:
If multiple FilteringPathResourceImplementations inside a single
ClassPathImplementation fire changes in this pseudo-property in
succession, all using the same non-null PropertyChangeEvent.setPropagationId(java.lang.Object),
ClassPath.PROP_INCLUDES will be fired just once. This can be used
to prevent "event storms" from triggering excessive Java source root rescanning.
boolean includes(URL root, String resource)
root - one of the roots given by PathResourceImplementation.getRoots() (else may throw IllegalArgumentException)resource - a relative resource path within that root; may refer to a file or slash-terminated folder; the empty string refers to the root itself