Examples of PrimaryBeanTransformer


Examples of com.foreach.across.core.transformers.PrimaryBeanTransformer

      Map<String, String> rename = new HashMap<String, String>();
      rename.put( "myService", "someService" );

      Collection<String> primaries = Arrays.asList( "myController" );
      module.setExposeTransformer(
          new BeanDefinitionTransformerComposite( new PrimaryBeanTransformer( primaries ),
                                                  new BeanRenameTransformer( rename, false ) ) );

      return module;
    }
View Full Code Here

Examples of com.foreach.across.core.transformers.PrimaryBeanTransformer

    public ExposingModule prefixedModule() {
      ExposingModule module = new ExposingModule( "prefixed" );

      Collection<String> primaries = Arrays.asList( "myService" );
      module.setExposeTransformer(
          new BeanDefinitionTransformerComposite( new PrimaryBeanTransformer( primaries ),
                                                  new BeanPrefixingTransformer( "prefix" ) ) );

      return module;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.