Merge pull request #1349 from aviskarBasnet:doc-fix
* pr/1349: Polish contribution Polish doc
This commit is contained in:
@@ -370,7 +370,7 @@ delegates, e.g. with `XmlBeanDefinitionReader` for XML files:
|
||||
[subs="verbatim,quotes"]
|
||||
----
|
||||
GenericApplicationContext context = new GenericApplicationContext();
|
||||
new XmlBeanDefinitionReader(ctx).loadBeanDefinitions("services.xml", "daos.xml");
|
||||
new XmlBeanDefinitionReader(context).loadBeanDefinitions("services.xml", "daos.xml");
|
||||
context.refresh();
|
||||
----
|
||||
|
||||
@@ -380,7 +380,7 @@ Or with `GroovyBeanDefinitionReader` for Groovy files:
|
||||
[subs="verbatim,quotes"]
|
||||
----
|
||||
GenericApplicationContext context = new GenericApplicationContext();
|
||||
new GroovyBeanDefinitionReader(ctx).loadBeanDefinitions("services.groovy", "daos.groovy");
|
||||
new GroovyBeanDefinitionReader(context).loadBeanDefinitions("services.groovy", "daos.groovy");
|
||||
context.refresh();
|
||||
----
|
||||
|
||||
|
||||
@@ -863,12 +863,16 @@ such as a `static valueOf` method, is defined on the target class.
|
||||
[source,java,indent=0]
|
||||
[subs="verbatim,quotes"]
|
||||
----
|
||||
public interface ConditionalGenericConverter
|
||||
extends GenericConverter, ConditionalConverter {
|
||||
public interface ConditionalConverter {
|
||||
|
||||
boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType);
|
||||
|
||||
}
|
||||
|
||||
public interface ConditionalGenericConverter
|
||||
extends GenericConverter, ConditionalConverter {
|
||||
|
||||
}
|
||||
----
|
||||
|
||||
A good example of a `ConditionalGenericConverter` is an EntityConverter that converts
|
||||
|
||||
Reference in New Issue
Block a user