Package jfun.yan.factory

Examples of jfun.yan.factory.ThreadLocalScope


      verifyABMutualRecursionForSingleton(a, b);
    }  
    public void testMutualRecursionOnScopedSingletonSingletonBean()
    throws IntrospectionException{
      Component a = Components.bean(A.class).singleton(new GlobalScope()).singleton();
      Component b = Components.bean(B.class).singleton(new ThreadLocalScope()).singleton();
      verifyABMutualRecursionForSingleton(a, b);
    }
View Full Code Here


      verifyABMutualRecursionForSingleton(a, b);
    }
    public void testMutualRecursionOnSingletonScopedSingletonBean()
    throws IntrospectionException{
      Component a = Components.bean(A.class).singleton().singleton(new GlobalScope());
      Component b = Components.bean(B.class).singleton().singleton(new ThreadLocalScope()).singleton();
      verifyABMutualRecursionForSingleton(a, b);
    }
View Full Code Here

        if(mode!=null)
          c = mode.decorate(c);
      }
      else{
        //factroy bean is by default singleton.
        c = c.singleton(new ThreadLocalScope());
      }
    }
    if(transaction_attributes==null){
      //no transaction to do
      if(type==null || isfactorybean){
View Full Code Here

TOP

Related Classes of jfun.yan.factory.ThreadLocalScope

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.