Announcement Announcement Module
Collapse
No announcement yet.
Test post, please ignore Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Test post, please ignore

    Just a post to test some data conversion for the forum software. Please ignore...

    Code:
    <!-- Generic validator for Account objects, to be used for example by the Spring web tier -->
    <bean id="accountValidator"
        class="org.springframework.samples.jpetstore.domain.logic.AccountValidator"/>
    
    <bean id="orderValidator"
        class="org.springframework.samples.jpetstore.domain.logic.OrderValidator"/>
    
    <bean id="emailAdvice"
        class="org.springframework.samples.jpetstore.domain.logic.SendOrderConfirmationEmailAdvice">
      <property name="mailSender" ref="mailSender"/>
    </bean>
    
    <!-- try to do a bean factory ref, which needs an 'and' sign
         also use an embedded escaped quote -->
    <bean id="myBean" class="...">
      <property name="myProp" ref="&amp;myFactoryBean"/>
      <property name="myProp2" value"some text &quot;quoted text&quot; some more"/>
    </bean>
    Now a version of the same outside of a code block:

    <!-- Generic validator for Account objects, to be used for example by the Spring web tier -->
    <bean id="accountValidator"
    class="org.springframework.samples.jpetstore.domai n.logic.AccountValidator"/>

    <bean id="orderValidator"
    class="org.springframework.samples.jpetstore.domai n.logic.OrderValidator"/>

    <bean id="emailAdvice"
    class="org.springframework.samples.jpetstore.domai n.logic.SendOrderConfirmationEmailAdvice">
    <property name="mailSender" ref="mailSender"/>
    </bean>

    <!-- try to do a bean factory ref, which needs an 'and' sign
    also use an embedded escaped quote -->
    <bean id="myBean" class="...">
    <property name="myProp" ref="&amp;myFactoryBean"/>
    <property name="myProp2" value"some text &quot;quoted text&quot; some more"/>
    </bean>

    Now some Java code
    Code:
      if &#40;x > 10 && y < 20&#41;
        doSomething&#40;&#41;;
      a = b & c;
      String str = "Hello";
      char chr = 'c';
    And again:
    if (x > 10 && y < 20)
    doSomething();
    a = b & c;
    String str = "Hello";
    char chr = 'c';
Working...
X