public static TGTransportAdapter getInstance(TGContext context) {
   return TGSingletonUtil.getInstance(
       context,
       TGTransportAdapter.class.getName(),
       new TGSingletonFactory<TGTransportAdapter>() {
         public TGTransportAdapter createInstance(TGContext context) {
           return new TGTransportAdapter(context);
         }
       });
 }
Exemplo n.º 2
0
 public static TGExpressionResolver getInstance(TGContext context) {
   return TGSingletonUtil.getInstance(
       context,
       TGExpressionResolver.class.getName(),
       new TGSingletonFactory<TGExpressionResolver>() {
         public TGExpressionResolver createInstance(TGContext context) {
           return new TGExpressionResolver();
         }
       });
 }