Update of 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-spring/src/test/java/org/xdoclet/plugin/spring/complete
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4075/plugin-spring/src/test/java/org/xdoclet/plugin/spring/complete

Added Files:
        ConstructorInjectionBean.java FirstBean.java 
        InheritedBean.java ParentBean.java SecondBean.java 
        application-context.xml 
Log Message:
 XDP-163 - commitet spring plugin


--- NEW FILE: InheritedBean.java ---
/**
 * Created by Renaud Bruyeron on 08-Feb-2006
 */
package org.xdoclet.plugin.spring.complete;

/**
 * @author Renaud Bruyeron
 * @version $Id: InheritedBean.java,v 1.1 2006/02/09 10:32:54 ko5tik Exp $
 * @spring.bean
 *              name="inheritedBean"
 *              description="a bean that inherits spring doclets from its 
parent"
 */
public class InheritedBean extends ParentBean {
        
        private Boolean enabled;

        /**
         * @return Returns the enabled.
         */
        public Boolean getEnabled() {
                return enabled;
        }

        /**
         * @param enabled The enabled to set.
         * @spring.property
         *              ref="anotherBean"
         */
        public void setEnabled(Boolean enabled) {
                this.enabled = enabled;
        }

}

--- NEW FILE: ConstructorInjectionBean.java ---
/**
 * Created by Renaud Bruyeron on 08-Feb-2006
 */
package org.xdoclet.plugin.spring.complete;

import java.util.List;

/**
 * @author Renaud Bruyeron
 * @version $Id: ConstructorInjectionBean.java,v 1.1 2006/02/09 10:32:54 ko5tik 
Exp $
 * @spring.bean
 *              id="myBean"
 */
public class ConstructorInjectionBean {

        /**
         * 
         * @param value
         * @spring.constructor-arg value="a value"
         * @spring.constructor-arg value="true"
         * @spring.constructor-arg ref="truc"
         * @spring.constructor-arg list="a,list, of, strings"
         */
        public ConstructorInjectionBean(String value, Boolean init, FirstBean 
bean, List myList){
                // ignore
        }
}

--- NEW FILE: application-context.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" 
"http://www.springframework.org/dtd/spring-beans.dtd";>

<beans
        default-lazy-init="true"
        default-dependency-check="simple"
        default-autowire="byName">
  <bean class="org.xdoclet.plugin.spring.complete.ConstructorInjectionBean" 
singleton="true" id="myBean">
    <constructor-arg>
      <value>a value</value>
    </constructor-arg>
    <constructor-arg>
      <value>true</value>
    </constructor-arg>
    <constructor-arg>
      <ref bean="truc"/>
    </constructor-arg>
    <constructor-arg>
      <list>
        <value>a</value>
        <value>list</value>
        <value>of</value>
        <value>strings</value>
      </list>
    </constructor-arg>
  </bean>
  <bean class="org.xdoclet.plugin.spring.complete.FirstBean" parent="chose" 
singleton="true" id="truc">
    <description>bidule</description>
    <property name="truc">
      <value>chose</value>
    </property>
  </bean>
  <bean class="org.xdoclet.plugin.spring.complete.InheritedBean" 
singleton="true" name="inheritedBean">
    <description>a bean that inherits spring doclets from its 
parent</description>
    <property name="enabled">
      <ref bean="anotherBean"/>
    </property>
    <property name="machin">
      <value>truc</value>
    </property>
  </bean>
  <bean class="org.xdoclet.plugin.spring.complete.SecondBean" singleton="false" 
id="yeah">
    <description>No 99 is the Great One</description>
    <property name="myList">
      <list>
        <value>one</value>
        <value>two</value>
        <value>three</value>
      </list>
    </property>
  </bean>
  <!--Merging 
E:\eclipse311-wtp\workspace\xdoclet-plugins\plugin-spring\target\test-classes\org\xdoclet\plugin\spring\complete\merge\spring-beans.xml-->
  
  <bean id="chose" abstract="true"> 
    <property name="myProperty" value="345"></property> 
  </bean> 
</beans>
--- NEW FILE: ParentBean.java ---
/**
 * Created by Renaud Bruyeron on 08-Feb-2006
 */
package org.xdoclet.plugin.spring.complete;

/**
 * @author Renaud Bruyeron
 * @version $Id: ParentBean.java,v 1.1 2006/02/09 10:32:54 ko5tik Exp $
 */
public class ParentBean {
        
        private String machin;

        /**
         * @param machin The machin to set.
         * @spring.property
         *              value="truc"
         */
        public void setMachin(String machin) {
                this.machin = machin;
        }
        
        
}

--- NEW FILE: SecondBean.java ---
/**
 * Created by Renaud Bruyeron on 28-Jan-2006
 */
package org.xdoclet.plugin.spring.complete;

import java.util.List;

/**
 * This bean has a list property
 * 
 * @author Renaud Bruyeron
 * @version $Id: SecondBean.java,v 1.1 2006/02/09 10:32:54 ko5tik Exp $
 * @spring.bean
 *              id="yeah"
 *              description="No 99 is the Great One"
 *              singleton="false"
 */
public class SecondBean {
        
        private List myList;

        /**
         * @return Returns the myList.
         */
        public List getMyList() {
                return myList;
        }

        /**
         * @param myList The myList to set.
         * @spring.property
         *              list="one, two, three"
         */
        public void setMyList(List myList) {
                this.myList = myList;
        }

}

--- NEW FILE: FirstBean.java ---
/**
 * Created by Renaud Bruyeron on 28-Jan-2006
 */
package org.xdoclet.plugin.spring.complete;

/**
 * @author Renaud Bruyeron
 * @version $Id: FirstBean.java,v 1.1 2006/02/09 10:32:54 ko5tik Exp $
 * @spring.bean
 *              id="truc"
 *              description="bidule"
 *              parent="chose"
 *              singleton="true"
 */
public class FirstBean {
        
        private String truc;

        /**
         * @return Returns the truc.
         */
        public String getTruc() {
                return truc;
        }

        /**
         * @param truc The truc to set.
         * @spring.property
         *              value="chose"
         */
        public void setTruc(String truc) {
                this.truc = truc;
        }
        
        

}



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits

Reply via email to