Remove <emphasis> to work around DocBook bug
It was determined (through painful trial and error) that after the upgrade to DocBook 5 and the gradle-docbook-reference plugin, that <emphasis> elements embedded within <programlisting> elements causes NullPointerExceptions during processing. This change eliminates these <emphasis> elements to work around the problem. This means a slight degradation in presentation for the affected areas of the reference documentation. After some research, it is not clear what other workarounds may be possible that leave the text actually emphasized.
This commit is contained in:
@@ -404,16 +404,16 @@
|
||||
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
|
||||
|
||||
<lineannotation><!-- an HTTP <interfacename>Session</interfacename>-scoped bean exposed as a proxy --></lineannotation>
|
||||
<bean id="userPreferences" class="com.foo.UserPreferences" <emphasis role="bold">scope="session"</emphasis>>
|
||||
<bean id="userPreferences" class="com.foo.UserPreferences" scope="session">
|
||||
|
||||
<lineannotation><!-- instructs the container to proxy the surrounding bean --></lineannotation>
|
||||
<emphasis role="bold"><aop:scoped-proxy/></emphasis>
|
||||
<aop:scoped-proxy/>
|
||||
</bean>
|
||||
|
||||
<lineannotation><!-- a singleton-scoped bean <emphasis role="bold">injected with a proxy to the above bean</emphasis> --></lineannotation>
|
||||
<lineannotation><!-- a singleton-scoped bean injected with a proxy to the above bean --></lineannotation>
|
||||
<bean id="userService" class="com.foo.SimpleUserService">
|
||||
|
||||
<lineannotation><!-- a reference to the <emphasis role="bold">proxied</emphasis> <literal>userPreferences</literal> bean --></lineannotation>
|
||||
<lineannotation><!-- a reference to the proxied <literal>userPreferences</literal> bean --></lineannotation>
|
||||
<property name="userPreferences" ref="userPreferences"/>
|
||||
|
||||
</bean>
|
||||
@@ -489,7 +489,7 @@
|
||||
objects:</para>
|
||||
|
||||
<programlisting language="xml"><bean id="userPreferences" class="com.foo.UserPreferences" scope="session">
|
||||
<emphasis role="bold"><literal><aop:scoped-proxy/></literal></emphasis>
|
||||
<literal><aop:scoped-proxy/></literal>
|
||||
</bean>
|
||||
|
||||
<bean id="userManager" class="com.foo.UserManager">
|
||||
@@ -524,7 +524,7 @@
|
||||
|
||||
<programlisting language="xml"><lineannotation><!-- <classname>DefaultUserPreferences</classname> implements the <interfacename>UserPreferences</interfacename> interface --></lineannotation>
|
||||
<bean id="userPreferences" class="com.foo.DefaultUserPreferences" scope="session">
|
||||
<aop:scoped-proxy <emphasis role="bold">proxy-target-class="false"<literal/></emphasis>/>
|
||||
<aop:scoped-proxy proxy-target-class="false"<literal/>/>
|
||||
</bean>
|
||||
|
||||
<bean id="userManager" class="com.foo.UserManager">
|
||||
@@ -633,7 +633,7 @@
|
||||
|
||||
<programlisting language="java">
|
||||
Scope threadScope = new SimpleThreadScope();
|
||||
beanFactory.registerScope("<emphasis role="bold">thread</emphasis>", threadScope);</programlisting>
|
||||
beanFactory.registerScope("thread", threadScope);</programlisting>
|
||||
|
||||
<para>You then create bean definitions that adhere to the scoping rules of
|
||||
your custom <interfacename>Scope</interfacename>:</para>
|
||||
@@ -657,10 +657,10 @@ beanFactory.registerScope("<emphasis role="bold">thread</emphasis>", threadScope
|
||||
|
||||
<bean class="org.springframework.beans.factory.config.CustomScopeConfigurer">
|
||||
<property name="scopes">
|
||||
<map><emphasis role="bold">
|
||||
<map>
|
||||
<entry key="thread">
|
||||
<bean class="org.springframework.context.support.SimpleThreadScope"/>
|
||||
</entry></emphasis>
|
||||
</entry>
|
||||
</map>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
Reference in New Issue
Block a user