インターフェースの使用
org.springframework.core.io.ResourceLoader
パッケージ
説明
org.springframework.beans.factory
パッケージをサポートするクラス。 標準の "spring-beans" XSD を含む、抽象 XML ベースの
BeanFactory
実装が含まれています。Bean のリストをソートおよび保持するためのユーティリティクラスなど、org.springframework.beans パッケージをサポートするクラス。
このパッケージは、beans パッケージに基づいて構築され、メッセージソースと Observer デザインパターンのサポート、および一貫性のある API を使用してリソースを取得するアプリケーションオブジェクトの機能を追加します。
JSR-250「共通」アノテーション、コンポーネントスキャン、Spring 管理オブジェクトを作成するための Java ベースのメタデータなど、アプリケーションコンテキストのアノテーションサポート。
ApplicationContext 実装および MessageSource 実装の抽象基本クラスなど、org.springframework.context パッケージをサポートするクラス。
フレームワーク全体で使用される(ファイルベースの)リソースの一般的な抽象化。
Spring のリソース抽象化のサポートクラス。
アノテーションおよびクラスレベルのメタデータを読み取るためのクラスをサポートします。
Spring JDBC 構成名前空間を定義します。
組み込みデータベースインスタンスを作成するための拡張可能なサポートを提供します。
Spring の Web MVC フレームワークでの使用を対象とした、サーブレット API 6.0 モックオブジェクトの包括的なセット。
Hibernate 5.x と Spring の概念の統合を提供するパッケージ。
JPA(Java Persistence API)と Spring コンセプトの統合を提供するパッケージ。
JPA 永続性ユニットを管理するための内部サポート。
オープンソーススケジューラ Quartz のサポートクラス。Quartz スケジューラ、JobDetails、トリガーを Spring コンテキストの Bean として設定できます。
Spring のスクリプトパッケージのサポートクラス。
Spring TestContext フレームワークのサポートクラス。
Spring TestContext フレームワーク内で使用される一般的なユーティリティ。
設定するためのサポートクラス FreeMarker を Spring アプリケーションコンテキスト内。
Web アプリケーションのアプリケーションコンテキストインターフェースのバリアントと、ルート Web アプリケーションコンテキストをブートストラップする ContextLoaderListener が含まれています。
WebApplicationContext 実装やさまざまなユーティリティクラスなど、
org.springframework.web.context
パッケージをサポートするクラス。Spring WebFlux 構成インフラストラクチャ。
静的リソースを提供するためのサポートクラス。
org.springframework.beans.factory.support 内の ResourceLoader 使用
修飾子と型メソッド説明AbstractBeanDefinitionReader.getResourceLoader()
BeanDefinitionReader.getResourceLoader()
リソースの場所に使用するResourceLoader
を返します。修飾子と型メソッド説明void
AbstractBeanDefinitionReader.setResourceLoader
(ResourceLoader resourceLoader) リソースの場所に使用する ResourceLoader を設定します。org.springframework.beans.factory.xml 内の ResourceLoader 使用
修飾子コンストラクター説明ResourceEntityResolver
(ResourceLoader resourceLoader) 指定された ResourceLoader の ResourceEntityResolver(通常は ApplicationContext)を作成します。org.springframework.beans.support 内の ResourceLoader 使用
修飾子コンストラクター説明ResourceEditorRegistrar
(ResourceLoader resourceLoader, PropertyResolver propertyResolver) 指定されたResourceLoader
およびPropertyResolver
の新しい ResourceEditorRegistrar を作成します。org.springframework.context 内の ResourceLoader 使用
修飾子と型インターフェース説明interface
アプリケーションの構成を提供する主要インターフェース。interface
ほとんどのアプリケーションコンテキストによって実装される SPI インターフェース。修飾子と型メソッド説明void
ResourceLoaderAware.setResourceLoader
(ResourceLoader resourceLoader) このオブジェクトが実行される ResourceLoader を設定します。org.springframework.context.annotation 内の ResourceLoader 使用
修飾子と型クラス説明class
コンポーネントクラスを入力として受け入れるスタンドアロンアプリケーションコンテキスト — 特に@Configuration
アノテーション付きクラスだけでなく、プレーン@Component
型およびjakarta.inject
アノテーションを使用する JSR-330 準拠クラスも受け入れます。修飾子と型メソッド説明final ResourceLoader
ClassPathScanningCandidateComponentProvider.getResourceLoader()
このコンポーネントプロバイダーが使用する ResourceLoader を返します。ConditionContext.getResourceLoader()
現在使用されているResourceLoader
を返します。修飾子と型メソッド説明static ListSE<TypeFilter>
TypeFilterUtils.createTypeFiltersFor
(AnnotationAttributes filterAttributes, Environment environment, ResourceLoader resourceLoader, BeanDefinitionRegistry registry) ComponentScan.includeFilters()
またはComponentScan.excludeFilters()
から供給されたものなど、提供されたAnnotationAttributes
から型フィルターを作成します。void
ClassPathScanningCandidateComponentProvider.setResourceLoader
(ResourceLoader resourceLoader) リソースの場所に使用するResourceLoader
を設定します。void
ConfigurationClassPostProcessor.setResourceLoader
(ResourceLoader resourceLoader) 修飾子コンストラクター説明ClassPathBeanDefinitionScanner
(BeanDefinitionRegistry registry, boolean useDefaultFilters, Environment environment, ResourceLoader resourceLoader) 指定された Bean ファクトリの新しいClassPathBeanDefinitionScanner
を作成し、Bean 定義プロファイルメタデータを評価するときに指定されたEnvironment
を使用します。org.springframework.context.support 内の ResourceLoader 使用
修飾子と型クラス説明class
ApplicationContext
インターフェースの抽象的な実装。class
AbstractApplicationContext.refresh()
への複数の呼び出しをサポートすることになっているApplicationContext
実装の基本クラスで、毎回新しい内部 Bean ファクトリインスタンスを作成します。class
指定された構成の場所の一般的な処理を追加するAbstractRefreshableApplicationContext
サブクラス。class
ApplicationContext
実装の便利な基本クラス。XmlBeanDefinitionReader
が理解する Bean 定義を含む XML ドキュメントから構成を描画します。class
スタンドアロン XML アプリケーションコンテキスト。コンテキストパスをクラスパスから取得し、プレーンパスをパッケージパスを含むクラスパスリソース名として解釈します(例:class
スタンドアロン XML アプリケーションコンテキスト。ファイルシステムまたは URL からコンテキスト定義ファイルを取得し、プレーンパスを相対ファイルシステムの場所として解釈します(例:class
単一の内部DefaultListableBeanFactory
インスタンスを保持し、特定の Bean 定義フォーマットを想定しない汎用 ApplicationContext 実装。class
GenericApplicationContext
を継承し、GroovyObject
を実装するApplicationContext
実装。AbstractApplicationContext.getBean(java.lang.String)
を使用する代わりに、ドット参照解除構文で Bean を取得できます。class
組み込みの XML サポートを備えた便利なアプリケーションコンテキスト。class
外部構成ソースから Bean 定義を読み取るのではなく、Bean およびメッセージのプログラムによる登録をサポートするApplicationContext
実装。修飾子と型メソッド説明void
GenericApplicationContext.setResourceLoader
(ResourceLoader resourceLoader) このコンテキストに使用する ResourceLoader を設定します。void
ReloadableResourceBundleMessageSource.setResourceLoader
(ResourceLoader resourceLoader) バンドルプロパティファイルのロードに使用する ResourceLoader を設定します。org.springframework.core.io 内の ResourceLoader 使用
修飾子と型クラス説明class
プレーンなリソースパスを指定されたjava.lang.Class
に関連するものとして解釈するResourceLoader
実装。class
ResourceLoader
インターフェースのデフォルト実装。class
プレーンパスをクラスパスリソースとしてではなくファイルシステムリソースとして解決するResourceLoader
実装(後者はDefaultResourceLoader
のデフォルト戦略です)。修飾子と型メソッド説明ProtocolResolver.resolve
(StringSE location, ResourceLoader resourceLoader) この実装のプロトコルが一致する場合、指定されたリソースローダーに対して指定された場所を解決します。修飾子コンストラクター説明ResourceEditor
(ResourceLoader resourceLoader, PropertyResolver propertyResolver) ResourceEditor
(ResourceLoader resourceLoader, PropertyResolver propertyResolver, boolean ignoreUnresolvablePlaceholders) 指定されたResourceLoader
を使用して、ResourceEditor
クラスの新しいインスタンスを作成します。org.springframework.core.io.support 内の ResourceLoader 使用
修飾子と型メソッド説明PathMatchingResourcePatternResolver.getResourceLoader()
このパターンリゾルバーが動作するResourceLoader
を返します。修飾子と型メソッド説明static ResourcePatternResolver
ResourcePatternUtils.getResourcePatternResolver
(ResourceLoader resourceLoader) 指定されたResourceLoader
のデフォルトResourcePatternResolver
を返します。修飾子コンストラクター説明LocalizedResourceHelper
(ResourceLoader resourceLoader) 指定された ResourceLoader で新しい LocalizedResourceHelper を作成します。PathMatchingResourcePatternResolver
(ResourceLoader resourceLoader) 提供されたResourceLoader
を使用してPathMatchingResourcePatternResolver
を作成します。PropertySourceProcessor
(ConfigurableEnvironment environment, ResourceLoader resourceLoader) org.springframework.core.type.classreading 内の ResourceLoader 使用
修飾子と型メソッド説明final ResourceLoader
SimpleMetadataReaderFactory.getResourceLoader()
この MetadataReaderFactory が構築された ResourceLoader を返します。修飾子コンストラクター説明CachingMetadataReaderFactory
(ResourceLoader resourceLoader) サポートされている場合は共有リソースキャッシュを、サポートされていない場合はローカルリソースキャッシュを使用して、指定されたResourceLoader
の新しい CachingMetadataReaderFactory を作成します。SimpleMetadataReaderFactory
(ResourceLoader resourceLoader) 指定されたリソースローダーの新しい SimpleMetadataReaderFactory を作成します。org.springframework.jdbc.config 内の ResourceLoader 使用
修飾子コンストラクター説明SortedResourcesFactoryBean
(ResourceLoader resourceLoader, ListSE<StringSE> locations) org.springframework.jdbc.datasource.embedded 内の ResourceLoader 使用
修飾子コンストラクター説明EmbeddedDatabaseBuilder
(ResourceLoader resourceLoader) 指定されたResourceLoader
で新しい組み込みデータベースビルダーを作成します。org.springframework.mock.web 内の ResourceLoader 使用
修飾子コンストラクター説明MockServletContext
(StringSE resourceBasePath, ResourceLoader resourceLoader) 提供されたリソースベースパスとリソースローダーを使用して、新しいMockServletContext
を作成します。MockServletContext
(ResourceLoader resourceLoader) 指定されたResourceLoader
を使用し、ベースパスを使用せずに、新しいMockServletContext
を作成します。org.springframework.orm.hibernate5 内の ResourceLoader 使用
修飾子と型メソッド説明LocalSessionFactoryBean.getResourceLoader()
Hibernate メタデータに使用する SpringResourceLoader
を決定します。修飾子と型メソッド説明void
LocalSessionFactoryBean.setResourceLoader
(ResourceLoader resourceLoader) Hibernate メタデータに使用する SpringResourceLoader
を指定します。修飾子コンストラクター説明LocalSessionFactoryBuilder
(DataSourceSE dataSource, ResourceLoader resourceLoader) 指定された DataSource の新しい LocalSessionFactoryBuilder を作成します。LocalSessionFactoryBuilder
(DataSourceSE dataSource, ResourceLoader resourceLoader, MetadataSources metadataSources) 指定された DataSource の新しい LocalSessionFactoryBuilder を作成します。org.springframework.orm.jpa 内の ResourceLoader 使用
修飾子と型メソッド説明void
LocalContainerEntityManagerFactoryBean.setResourceLoader
(ResourceLoader resourceLoader) org.springframework.orm.jpa.persistenceunit 内の ResourceLoader 使用
修飾子コンストラクター説明PersistenceManagedTypesScanner
(ResourceLoader resourceLoader) 指定されたリソースローダーに対して新しいPersistenceManagedTypesScanner
を作成します。PersistenceManagedTypesScanner
(ResourceLoader resourceLoader, ManagedClassNameFilter managedClassNameFilter) 指定されたリソースローダーに対して新しいPersistenceManagedTypesScanner
を作成します。org.springframework.scheduling.quartz 内の ResourceLoader 使用
修飾子と型メソッド説明static ResourceLoader
SchedulerFactoryBean.getConfigTimeResourceLoader()
ResourceLoaderClassLoadHelper
で使用される、現在構成されている Quartz スケジューラのResourceLoader
を返します。修飾子コンストラクター説明ResourceLoaderClassLoadHelper
(ResourceLoader resourceLoader) 指定された ResourceLoader の新しい ResourceLoaderClassLoadHelper を作成します。org.springframework.scripting.support 内の ResourceLoader 使用
修飾子と型メソッド説明protected ScriptSource
ScriptFactoryPostProcessor.convertToScriptSource
(StringSE beanName, StringSE scriptSourceLocator, ResourceLoader resourceLoader) 指定されたスクリプトソースロケータを ScriptSource インスタンスに変換します。void
ScriptFactoryPostProcessor.setResourceLoader
(ResourceLoader resourceLoader) org.springframework.test.context.support 内の ResourceLoader 使用
修飾子と型メソッド説明static void
TestPropertySourceUtils.addPropertiesFilesToEnvironment
(ConfigurableEnvironment environment, ResourceLoader resourceLoader, StringSE... locations) static void
TestPropertySourceUtils.addPropertySourcesToEnvironment
(ConfigurableEnvironment environment, ResourceLoader resourceLoader, ListSE<PropertySourceDescriptor> descriptors) 指定されたdescriptors
のプロパティソースを、指定されたenvironment
に追加します。org.springframework.test.context.util 内の ResourceLoader 使用
修飾子と型メソッド説明TestContextResourceUtils.convertToResourceList
(ResourceLoader resourceLoader, StringSE... paths) 指定されたResourceLoader
を使用して、指定されたパスをResource
ハンドルのリストに変換します。static Resource[]
TestContextResourceUtils.convertToResources
(ResourceLoader resourceLoader, StringSE... paths) 指定されたResourceLoader
を使用して、指定されたパスをResource
ハンドルの配列に変換します。org.springframework.ui.freemarker 内の ResourceLoader 使用
修飾子と型メソッド説明protected ResourceLoader
FreeMarkerConfigurationFactory.getResourceLoader()
FreeMarker テンプレートファイルのロードに使用する Spring ResourceLoader を返します。修飾子と型メソッド説明void
FreeMarkerConfigurationFactory.setResourceLoader
(ResourceLoader resourceLoader) FreeMarker テンプレートファイルのロードに使用する Spring ResourceLoader を設定します。修飾子コンストラクター説明SpringTemplateLoader
(ResourceLoader resourceLoader, StringSE templateLoaderPath) 新しい SpringTemplateLoader を作成します。org.springframework.web.context 内の ResourceLoader 使用
修飾子と型インターフェース説明interface
設定可能な Web アプリケーションコンテキストによって実装されるインターフェース。interface
Web アプリケーションの構成を提供するインターフェース。org.springframework.web.context.support 内の ResourceLoader 使用
修飾子と型クラス説明class
Web 環境用のConfigurableWebApplicationContext
インターフェースを実装するAbstractRefreshableApplicationContext
サブクラス。class
コンポーネントクラスを入力として受け入れるWebApplicationContext
実装 — 特に@Configuration
クラスだけでなく、プレーンな@Component
クラス、jakarta.inject
アノテーションを使用する JSR-330 準拠のクラス。class
Web 環境に適したGenericApplicationContext
のサブクラス。class
GroovyBeanDefinitionReader
で理解されるように、Groovy Bean 定義スクリプトおよび / または XML ファイルから構成を取得するWebApplicationContext
実装。class
WebApplicationContext の外部(たとえば、HttpServletBean または GenericFilterBean サブクラス)で使用するために、パスを ServletContext リソースとして解決する ResourceLoader 実装。class
PathMatchingResourcePatternResolver
の ServletContext 対応サブクラス。ServletContext.getResourcePaths(java.lang.String)
EE を介して、Web アプリケーションのルートディレクトリで一致するリソースを見つけることができます。class
テスト用の静的WebApplicationContext
実装。class
XmlBeanDefinitionReader
が理解する XML ドキュメントから構成を取得するWebApplicationContext
実装。修飾子コンストラクター説明ServletContextResourcePatternResolver
(ResourceLoader resourceLoader) 新しい ServletContextResourcePatternResolver を作成します。org.springframework.web.reactive.config 内の ResourceLoader 使用
修飾子コンストラクター説明ResourceHandlerRegistration
(ResourceLoader resourceLoader, StringSE... pathPatterns) ResourceHandlerRegistration
インスタンスを作成します。ResourceHandlerRegistry
(ResourceLoader resourceLoader) 指定されたリソースローダー(通常はアプリケーションコンテキスト)の新しいリソースハンドラーレジストリを作成します。org.springframework.web.reactive.resource 内の ResourceLoader 使用
修飾子と型メソッド説明void
ResourceWebHandler.setResourceLoader
(ResourceLoader resourceLoader) location values
をロードする ResourceLoader を提供します。