接口的使用
cn.taketoday.core.io.ResourceLoader
使用ResourceLoader的程序包
程序包
说明
Support classes for reading annotation and class-level metadata.
-
cn.taketoday.core.io中ResourceLoader的使用
修饰符和类型接口说明interfaceStrategy interface for resolving a location pattern (for example, an Ant-style path pattern) intoResourceobjects.修饰符和类型类说明classResourceLoaderimplementation that interprets plain resource paths as relative to a givenjava.lang.Class.classDefault implementation of theResourceLoaderinterface.classResourceLoaderimplementation that resolves plain paths as file system resources rather than as class path resources (the latter isDefaultResourceLoader's default strategy).classAPatternResourceLoaderimplementation that is able to resolve a specified resource location path into one or more matching Resources.修饰符和类型字段说明private final ResourceLoaderPathMatchingPatternResourceLoader.resourceLoaderprivate final ResourceLoaderResourceEditor.resourceLoader参数类型为ResourceLoader的cn.taketoday.core.io中的方法修饰符和类型方法说明static PatternResourceLoaderPatternResourceLoader.fromResourceLoader(ResourceLoader resourceLoader) Return a defaultPatternResourceLoaderfor the givenResourceLoader.ProtocolResolver.resolve(String location, ResourceLoader resourceLoader) Resolve the given location against the given resource loader if this implementation's protocol matches.参数类型为ResourceLoader的cn.taketoday.core.io中的构造器限定符构造器说明PathMatchingPatternResourceLoader(ResourceLoader resourceLoader) Create a new PathMatchingResourcePatternResolver.PropertySourceProcessor(ConfigurableEnvironment environment, ResourceLoader resourceLoader) ResourceEditor(ResourceLoader resourceLoader, PropertyResolver propertyResolver) Create a new instance of theResourceEditorclass using the givenResourceLoaderandPropertyResolver.ResourceEditor(ResourceLoader resourceLoader, PropertyResolver propertyResolver, boolean ignoreUnresolvablePlaceholders) Create a new instance of theResourceEditorclass using the givenResourceLoader. -
cn.taketoday.core.type.classreading中ResourceLoader的使用
修饰符和类型方法说明final ResourceLoaderSimpleMetadataReaderFactory.getResourceLoader()Return the ResourceLoader that this MetadataReaderFactory has been constructed with.限定符构造器说明CachingMetadataReaderFactory(ResourceLoader resourceLoader) Create a new CachingMetadataReaderFactory for the givenResourceLoader, using a shared resource cache if supported or a local resource cache otherwise.ConcurrentReferenceCachingMetadataReaderFactory(ResourceLoader resourceLoader) Create a newConcurrentReferenceCachingMetadataReaderFactoryinstance for the given resource loader.SimpleMetadataReaderFactory(ResourceLoader resourceLoader) Create a new SimpleMetadataReaderFactory for the given resource loader.