Package net.sf.beanrunner.factory.impl

Examples of net.sf.beanrunner.factory.impl.SingleValueInstanceFactory


   *            the value to pass
   */
  public void addTestValue(Class type, Object value) {
    InstanceFactory factory = (InstanceFactory) factoryMap.get(type);
    if (factory == null) {
      factoryMap.put(type, new SingleValueInstanceFactory(value));

    } else {
      factoryMap.put(type, new ChainedInstanceFactory(factory, new SingleValueInstanceFactory(value)));
    }
  }
View Full Code Here


     *            the value to pass
     */
    public void addTestValue(Class type, Object value) {
        InstanceFactory factory = (InstanceFactory) factoryMap.get(type);
        if (factory == null) {
            factoryMap.put(type, new SingleValueInstanceFactory(value));

        } else {
            factoryMap.put(type, new ChainedInstanceFactory(factory, new SingleValueInstanceFactory(value)));
        }
    }
View Full Code Here

TOP

Related Classes of net.sf.beanrunner.factory.impl.SingleValueInstanceFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.