Package com.foreach.across.core.transformers

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


      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


    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

Related Classes of com.foreach.across.core.transformers.BeanDefinitionTransformerComposite

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.