1 Reply Latest reply on Oct 4, 2007 1:34 PM by starksm64

    ManagedProperty value type

    alesj

      What's the idea behind value's type in ManagedProperty?
      Since I see we are mixing the usage.

      For getValue we are expecting SimpleValue

       assertEquals("jndi-name", SimpleValueSupport.wrap("DefaultDS"), p.getValue());
      

      but for setValue we push plain value
       ManagedProperty minSize = props.get("min-pool-size");
       minSize.setValue(new Integer(13));
      


      How do you then know what is value's type?
      Or is the code that should change server side value to SimpleValue still missing?

        • 1. Re: ManagedProperty value type
          starksm64

          When I originally wrote the tests I was using the simple java types. These all should be MetaValues now. Its an open ease of use issue on whether we allow simple java types and convert them.