open class DefaultPropertySourceFactory : PropertySourceFactory
The default implementation for PropertySourceFactory, wrapping every resource in a ResourcePropertySource. |
|
open class LocalizedResourceHelper
Helper class for loading a localized resource, specified through name, extension and current locale. |
|
open class PathMatchingResourcePatternResolver : ResourcePatternResolver
A ResourcePatternResolver implementation that is able to resolve a specified resource location path into one or more matching Resources. The source path may be a simple path which has a one-to-one mapping to a target org.springframework.core.io.Resource, or alternatively may contain the special " No Wildcards: In the simple case, if the specified location path does not start with the Ant-style Patterns: When the path location contains an Ant-style pattern, e.g.: the resolver follows a more complex but defined procedure to try to resolve the wildcard. It produces a Resource for the path up to the last non-wildcard segment and obtains a URL from it. If this URL is not a "jar: " URL or container-specific variant (e.g. "zip: " in WebLogic, "wsjar " in WebSphere", etc.), then a java.io.File is obtained from it, and used to resolve the wildcard by walking the filesystem. In the case of a jar URL, the resolver either gets a java.net.JarURLConnection from it, or manually parses the jar URL, and then traverses the contents of the jar file, to resolve the wildcards.
Implications on portability: If the specified path is already a file URL (either explicitly, or implicitly because the base If the specified path is a classpath location, then the resolver must obtain the last non-wildcard path segment URL via a If a jar URL is obtained for the last non-wildcard segment, the resolver must be able to get a
There is special support for retrieving multiple class path resources with the same name, via the " The "classpath*:" prefix can also be combined with a PathMatcher pattern in the rest of the location path, for example "classpath*:META-INF/*-beans.xml". In this case, the resolution strategy is fairly simple: a Other notes: WARNING: Note that " WARNING: Ant-style patterns with "classpath:" resources are not guaranteed to find matching resources if the root package to search is available in multiple class path locations. This is because a resource such as may be in only one location, but when a path such as is used to try to resolve it, the resolver will work off the (first) URL returned by getResource("com/mycompany"); . If this base package node exists in multiple classloader locations, the actual end resource may not be underneath. Therefore, preferably, use "classpath*: " with the same Ant-style pattern in such a case, which will search all class path locations that contain the root package.
|
|
abstract class ResourcePatternUtils
Utility class for determining whether a given URL is a resource location that can be loaded via a ResourcePatternResolver. Callers will usually assume that a location is a relative path if the |
|
open class ResourcePropertySource : PropertiesPropertySource
Subclass of PropertiesPropertySource that loads a Properties object from a given org.springframework.core.io.Resource or resource location such as Both traditional and XML-based properties file formats are supported; however, in order for XML processing to take effect, the underlying |
|
open class ResourceRegion
Region of a Resource implementation, materialized by a |
|
abstract class SpringFactoriesLoader
General purpose factory loading mechanism for internal use within the framework.
where example.MyService is the name of the interface, and MyServiceImpl1 and MyServiceImpl2 are two implementations.
|