Package | Description |
---|---|
org.springframework.beans.factory.groovy |
Support package for Groovy-based bean definitions.
|
org.springframework.beans.factory.support |
Classes supporting the
org.springframework.beans.factory package. |
org.springframework.beans.factory.xml |
Contains an abstract XML-based
BeanFactory implementation,
including a standard "spring-beans" XSD. |
org.springframework.core.io.support |
Support classes for Spring's resource abstraction.
|
org.springframework.jdbc.datasource.init |
Provides extensible support for initializing databases through scripts.
|
org.springframework.r2dbc.connection.init |
Provides extensible support for initializing databases through scripts.
|
org.springframework.scripting.support |
Support classes for Spring's scripting package.
|
Modifier and Type | Method and Description |
---|---|
int |
GroovyBeanDefinitionReader.loadBeanDefinitions(EncodedResource encodedResource)
Load bean definitions from the specified Groovy script or XML file.
|
Modifier and Type | Method and Description |
---|---|
int |
PropertiesBeanDefinitionReader.loadBeanDefinitions(EncodedResource encodedResource)
Deprecated.
Load bean definitions from the specified properties file.
|
int |
PropertiesBeanDefinitionReader.loadBeanDefinitions(EncodedResource encodedResource,
String prefix)
Deprecated.
Load bean definitions from the specified properties file.
|
Modifier and Type | Method and Description |
---|---|
int |
XmlBeanDefinitionReader.loadBeanDefinitions(EncodedResource encodedResource)
Load bean definitions from the specified XML file.
|
Modifier and Type | Method and Description |
---|---|
PropertySource<?> |
PropertySourceFactory.createPropertySource(String name,
EncodedResource resource)
Create a
PropertySource that wraps the given resource. |
PropertySource<?> |
DefaultPropertySourceFactory.createPropertySource(String name,
EncodedResource resource) |
static void |
PropertiesLoaderUtils.fillProperties(Properties props,
EncodedResource resource)
Fill the given properties from the given EncodedResource,
potentially defining a specific encoding for the properties file.
|
static Properties |
PropertiesLoaderUtils.loadProperties(EncodedResource resource)
Load properties from the given EncodedResource,
potentially defining a specific encoding for the properties file.
|
Constructor and Description |
---|
ResourcePropertySource(EncodedResource resource)
Create a PropertySource based on Properties loaded from the given resource.
|
ResourcePropertySource(String name,
EncodedResource resource)
Create a PropertySource having the given name based on Properties
loaded from the given encoded resource.
|
Modifier and Type | Method and Description |
---|---|
static String |
ScriptStatementFailedException.buildErrorMessage(String stmt,
int stmtNumber,
EncodedResource encodedResource)
Build an error message for an SQL script execution failure,
based on the supplied arguments.
|
static void |
ScriptUtils.executeSqlScript(Connection connection,
EncodedResource resource)
Execute the given SQL script using default settings for statement
separators, comment delimiters, and exception handling flags.
|
static void |
ScriptUtils.executeSqlScript(Connection connection,
EncodedResource resource,
boolean continueOnError,
boolean ignoreFailedDrops,
String[] commentPrefixes,
String separator,
String blockCommentStartDelimiter,
String blockCommentEndDelimiter)
Execute the given SQL script.
|
static void |
ScriptUtils.executeSqlScript(Connection connection,
EncodedResource resource,
boolean continueOnError,
boolean ignoreFailedDrops,
String commentPrefix,
String separator,
String blockCommentStartDelimiter,
String blockCommentEndDelimiter)
Execute the given SQL script.
|
static void |
ScriptUtils.splitSqlScript(EncodedResource resource,
String script,
String separator,
String[] commentPrefixes,
String blockCommentStartDelimiter,
String blockCommentEndDelimiter,
List<String> statements)
Deprecated.
as of Spring Framework 5.2.16 with no plans for replacement.
This is an internal API and will likely be removed in Spring Framework 6.0.
|
static void |
ScriptUtils.splitSqlScript(EncodedResource resource,
String script,
String separator,
String commentPrefix,
String blockCommentStartDelimiter,
String blockCommentEndDelimiter,
List<String> statements)
Deprecated.
as of Spring Framework 5.2.16 with no plans for replacement.
This is an internal API and will likely be removed in Spring Framework 6.0.
|
Constructor and Description |
---|
CannotReadScriptException(EncodedResource resource,
Throwable cause)
Create a new
CannotReadScriptException . |
ScriptParseException(String message,
EncodedResource resource)
Create a new
ScriptParseException . |
ScriptParseException(String message,
EncodedResource resource,
Throwable cause)
Create a new
ScriptParseException . |
ScriptStatementFailedException(String stmt,
int stmtNumber,
EncodedResource encodedResource,
Throwable cause)
Construct a new
ScriptStatementFailedException . |
Modifier and Type | Method and Description |
---|---|
static String |
ScriptStatementFailedException.buildErrorMessage(String stmt,
int stmtNumber,
EncodedResource encodedResource)
Build an error message for an SQL script execution failure,
based on the supplied arguments.
|
static reactor.core.publisher.Mono<Void> |
ScriptUtils.executeSqlScript(io.r2dbc.spi.Connection connection,
EncodedResource resource)
Execute the given SQL script using default settings for statement
separators, comment delimiters, and exception handling flags.
|
static reactor.core.publisher.Mono<Void> |
ScriptUtils.executeSqlScript(io.r2dbc.spi.Connection connection,
EncodedResource resource,
DataBufferFactory dataBufferFactory,
boolean continueOnError,
boolean ignoreFailedDrops,
String[] commentPrefixes,
String separator,
String blockCommentStartDelimiter,
String blockCommentEndDelimiter)
Execute the given SQL script.
|
static reactor.core.publisher.Mono<Void> |
ScriptUtils.executeSqlScript(io.r2dbc.spi.Connection connection,
EncodedResource resource,
DataBufferFactory dataBufferFactory,
boolean continueOnError,
boolean ignoreFailedDrops,
String commentPrefix,
String separator,
String blockCommentStartDelimiter,
String blockCommentEndDelimiter)
Execute the given SQL script.
|
Constructor and Description |
---|
CannotReadScriptException(EncodedResource resource,
Throwable cause)
Create a new
CannotReadScriptException . |
ScriptParseException(String message,
EncodedResource resource)
Create a new
ScriptParseException . |
ScriptParseException(String message,
EncodedResource resource,
Throwable cause)
Create a new
ScriptParseException . |
ScriptStatementFailedException(String stmt,
int stmtNumber,
EncodedResource encodedResource,
Throwable cause)
Create a new
ScriptStatementFailedException . |
Constructor and Description |
---|
ResourceScriptSource(EncodedResource resource)
Create a new ResourceScriptSource for the given resource.
|