Generate the default classpath resource locations array based on the
For example, if the supplied class is com.example.MyTest,
the generated locations will contain a single string with a value of
"classpath:com/example/MyTest<suffix>", where <suffix>
is the value of the first configured
resource suffix for which the
generated location actually exists in the classpath.
As of Spring 3.1, the implementation of this method adheres to the
contract defined in the SmartContextLoader SPI. Specifically,
this method will preemptively verify that the generated default
location actually exists. If it does not exist, this method will log a
warning and return an empty array.
Subclasses can override this method to implement a different
default location generation strategy.
clazz - the class for which the default locations are to be generated
an array of default application context resource locations
As of Spring 3.1, the semantics of this method have been overloaded
to include detection of either default resource locations or default
configuration classes. Consequently, this method can also be used to
determine whether or not default configuration classes should be
detected if the classes present in the
configuration attributes supplied
are null or empty.
Can be overridden by subclasses to change the default behavior.
Get the suffix to append to ApplicationContext resource locations
when detecting default locations.
Subclasses must provide an implementation of this method that returns
a single suffix. Alternatively subclasses may provide a no-op
implementation of this method and override getResourceSuffixes()
in order to provide multiple custom suffixes.