Results 1 to 3 of 3

Thread: Question: Static field settings

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    Lugano swiss
    Posts
    11

    Default Question: Static field settings

    Hi Com.

    I have a problem related to static field.

    in other words i have a class like this.

    Code:
    public class IConstants {
    	public  static Vector<Integer> LIST_OF_CONST;
    and my goal will be to inject the list of constant.

    like this

    Code:
    	<bean id="iConstants" class="com.cryms.pardo.extranet.efospring.utility.IConstants">
    		<property name="TEST_FAT" >
    		<list>
    			<value>17</value>		
    		</list>
    		</property>
    	</bean>
    Thanks in advance!!!

    have a nice day o night depending the GMT.
    Last edited by joksy; Jun 1st, 2010 at 01:54 AM.

  2. #2
    Join Date
    May 2010
    Location
    Lima, Perú
    Posts
    26

    Default

    Hi,
    The info in this link will give you the steps for doing what you need

    http://www.connorgarvey.com/blog/?p=105

    Regards

  3. #3
    Join Date
    Sep 2009
    Location
    Lugano swiss
    Posts
    11

    Default

    Quote Originally Posted by gmateo View Post
    Hi,
    The info in this link will give you the steps for doing what you need

    http://www.connorgarvey.com/blog/?p=105

    Regards
    @gmateo Thanks, man. I do not yet understood why there isn't the support of inject value in a static side.

    anyway thanks again

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •