diff --git a/docs/src/docbkx/reference/data.xml b/docs/src/docbkx/reference/data.xml index 9238f581..b5609247 100644 --- a/docs/src/docbkx/reference/data.xml +++ b/docs/src/docbkx/reference/data.xml @@ -56,16 +56,16 @@ checked exceptions, threading or resource management concerns: template.execute(new GemfireCallback<Iterable<String>>() { - public Iterable<String> doInGemfire(Region reg) throws GemFireCheckedException, GemFireException { - // working against a Region of String - Region<String, String> region = reg; - - region.put("1", "one"); - region.put("3", "three"); - - // should return 1 - return region.query("length < 5).size(); - } + public Iterable<String> doInGemfire(Region reg) throws GemFireCheckedException, GemFireException { + // working against a Region of String + Region<String, String> region = reg; + + region.put("1", "one"); + region.put("3", "three"); + + // should return 1 + return region.query("length < 5).size(); + } }); @@ -185,19 +185,19 @@ case: public class DBLoader extends WiringDeclarableSupport implements CacheLoader { - private DataSource dataSource; - - public void setDataSource(DataSource ds){ - this.dataSource = ds; - } - - public Object load(LoaderHelper helper) { ... } + private DataSource dataSource; + + public void setDataSource(DataSource ds){ + this.dataSource = ds; + } + + public Object load(LoaderHelper helper) { ... } } <cache-loader> <class-name>com.company.app.DBLoader</class-name> <!-- no parameter is passed (use the bean implicit name - that is the class name) --> + that is the class name) --> </cache-loader> <?xml version="1.0" encoding="UTF-8"?> @@ -207,8 +207,8 @@ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> - <bean id="dataSource" ... /> - + <bean id="dataSource" ... /> + <!-- template bean definition --> <bean id="com.company.app.DBLoader" abstract="true" p:dataSource-ref="dataSource"/> </beans> @@ -236,8 +236,8 @@ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> - <bean id="dataSource" ... /> - + <bean id="dataSource" ... /> + <!-- template bean definition --> <bean id="template-bean" abstract="true" p:dataSource-ref="dataSource"/> @@ -271,11 +271,11 @@ DataSource in the following way: public class DBLoader extends WiringDeclarableSupport implements CacheLoader { - // use annotations to 'mark' the needed dependencies - @javax.inject.Inject - private DataSource dataSource; - - public Object load(LoaderHelper helper) { ... } + // use annotations to 'mark' the needed dependencies + @javax.inject.Inject + private DataSource dataSource; + + public Object load(LoaderHelper helper) { ... } } <cache-loader> @@ -308,4 +308,4 @@ DBLoader code. - + \ No newline at end of file diff --git a/docs/src/docbkx/reference/samples.xml b/docs/src/docbkx/reference/samples.xml index 94066d51..af75f74a 100644 --- a/docs/src/docbkx/reference/samples.xml +++ b/docs/src/docbkx/reference/samples.xml @@ -123,4 +123,4 @@ Hello World! their dependency and life-cycle callbacks. - + \ No newline at end of file diff --git a/docs/src/docbkx/reference/serialization.xml b/docs/src/docbkx/reference/serialization.xml index 0dc0806e..25f34edb 100644 --- a/docs/src/docbkx/reference/serialization.xml +++ b/docs/src/docbkx/reference/serialization.xml @@ -45,10 +45,10 @@ as a usual bean: <bean id="instantiator" class="org.springframework.data.gemfire.serialization.WiringInstantiator"> - <!-- DataSerializable type --> - <constructor-arg>org.pkg.SomeDataSerializableClass</constructor-arg> - <!-- type id --> - <constructor-arg>95</constructor-arg> + <!-- DataSerializable type --> + <constructor-arg>org.pkg.SomeDataSerializableClass</constructor-arg> + <!-- type id --> + <constructor-arg>95</constructor-arg> </bean> During the container startup, once it is being initialized, the @@ -71,12 +71,12 @@ reflection: <bean id="instantiator-factory" class="org.springframework.data.gemfire.serialization.InstantiatorFactoryBean"> - <property name="customTypes"> - <map> - <entry key="org.pkg.CustomTypeA" value="1025"/> - <entry key="org.pkg.CustomTypeB" value="1026"/> - </map> - </property> + <property name="customTypes"> + <map> + <entry key="org.pkg.CustomTypeA" value="1025"/> + <entry key="org.pkg.CustomTypeB" value="1026"/> + </map> + </property> </bean> The definition above, automatically generated two