@FunctionalInterface public interface ExternalResourceHolder
AbstractCheck
, implementor of FileSetCheck
, or Filter
) which uses
external resources of any kind for its configuration. Such modules must declare external
resource locations as a set of String
which will be returned from
getExternalResourceLocations()
. This allows Checkstyle to invalidate (clear) cache
when the content of at least one external configuration resource of the module is changed.Modifier and Type | Method and Description |
---|---|
Set<String> |
getExternalResourceLocations()
Returns a set of external configuration resource locations which are used by the module.
|
Set<String> getExternalResourceLocations()
NullPointerException
in Checker
.
Such behaviour will signal that your module (check or filter) is designed incorrectly.
It make sense to return an empty set from 'getExternalResourceLocations()'
only for composite modules like TreeWalker
.Copyright © 2001–2018. All rights reserved.