Examples of register()


Examples of org.skyscreamer.yoga.demo.test.MapBeanConext.register()

                bind( EntityCountExceededExceptionExceptionMapper.class );

                serve( "*.yoga", "*.json", "*.xml", "*.xhtml" ).with( GuiceContainer.class, params );

                MapBeanConext context = new MapBeanConext();
                context.register( GenericDao.class, dao );
                TestUtil.setContext( context );

            }

        } );

Examples of org.skyscreamer.yoga.selector.FieldSelector.register()

        List<String> list = Arrays.asList( "someValue", "aSecondValue" );
        input.setRandomStrings( list );
        ObjectMapHierarchicalModelImpl model = new ObjectMapHierarchicalModelImpl();

        FieldSelector selector = new FieldSelector();
        selector.register( "randomStrings", new FieldSelector() );

        resultTraverser.traverse( input, new CompositeSelector( resolver.getBaseSelector(), selector ), model, requestContext );

        Map<String, Object> objectTree = model.getUnderlyingModel();
        Assert.assertEquals( list, objectTree.get( "randomStrings" ) );

Examples of org.sonatype.maven.polyglot.execute.ExecuteManager.register()

    @Override
    public void onNodeCompleted(FactoryBuilderSupport builder, Object parent, Object node) {
        Model model = (Model)node;
        ExecuteManager manager = ((ModelBuilder)builder).getExecuteManager();
        List<ExecuteTask> tasks = ((ModelBuilder) builder).getTasks();
        manager.register(model, tasks);
       
        // Reset the tasks list for sanity
        tasks.clear();
    }
}

Examples of org.springframework.batch.core.configuration.StepRegistry.register()

    @Test
    public void registerStepNullJobName() throws DuplicateJobException {
        final StepRegistry stepRegistry = createRegistry();

        try {
            stepRegistry.register(null, new HashSet<Step>());
            Assert.fail(EXCEPTION_NOT_THROWN_MSG);
        } catch (IllegalArgumentException e) {
        }
    }

Examples of org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext.register()

    childContext.setId(this.applicationContext.getId() + ":management");

    // Register the ManagementServerChildContextConfiguration first followed
    // by various specific AutoConfiguration classes. NOTE: The child context
    // is intentionally not completely auto-configured.
    childContext.register(EndpointWebMvcChildContextConfiguration.class,
        PropertyPlaceholderAutoConfiguration.class,
        EmbeddedServletContainerAutoConfiguration.class,
        DispatcherServletAutoConfiguration.class);

    // Ensure close on the parent also closes the child

Examples of org.springframework.context.annotation.AnnotatedBeanDefinitionReader.register()

    if (!ObjectUtils.isEmpty(this.annotatedClasses)) {
      if (logger.isInfoEnabled()) {
        logger.info("Registering annotated classes: [" +
            StringUtils.arrayToCommaDelimitedString(this.annotatedClasses) + "]");
      }
      reader.register(this.annotatedClasses);
    }

    if (!ObjectUtils.isEmpty(this.basePackages)) {
      if (logger.isInfoEnabled()) {
        logger.info("Scanning base packages: [" +

Examples of org.springframework.context.annotation.AnnotationConfigApplicationContext.register()

            throws InstantiationException, IllegalAccessException {

        WebApplicationContext parent = WebApplicationContextUtils.getWebApplicationContext(framework.getServletContext());
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
        context.setParent(parent);
        context.register(classToInstantiate);
        context.refresh();
        U t = context.getBean(classToInstantiate);

        if (framework.objectFactory().getClass().getName().equals("org.atmosphere.inject.InjectableObjectFactory")) {
            InjectableObjectFactory.class.cast(framework.objectFactory()).injectAtmosphereInternalObject(t, classToInstantiate, framework);

Examples of org.springframework.data.hadoop.store.strategy.naming.ChainedFileNamingStrategy.register()

  @Test
  public void testWriteReadManyLinesWithGzipWithCodecNaming() throws IOException {
    TextFileWriter writer = new TextFileWriter(getConfiguration(), testDefaultPath,
        Codecs.GZIP.getCodecInfo());
    ChainedFileNamingStrategy fileNamingStrategy = new ChainedFileNamingStrategy();
    fileNamingStrategy.register(new CodecFileNamingStrategy());
    fileNamingStrategy.register(new StaticFileNamingStrategy());
    writer.setFileNamingStrategy(fileNamingStrategy);
    TestUtils.writeData(writer, DATA09ARRAY);

    TextFileReader reader = new TextFileReader(getConfiguration(), new Path(testDefaultPath, "data.gzip"),

Examples of org.springframework.metadata.support.MapAttributes.register()

  public void testNullOrEmpty() throws Exception {
    Method method = ITestBean.class.getMethod("getAge", (Class[]) null);

    MapAttributes mar = new MapAttributes();
    mar.register(method, null);
    AttributesTransactionAttributeSource atas = new AttributesTransactionAttributeSource(mar);
    assertNull(atas.getTransactionAttribute(method, null));

    mar.register(method, new Object[0]);
    assertNull(atas.getTransactionAttribute(method, null));

Examples of org.springframework.springfaces.config.util.BeanDefinitionParserHelper.register()

    // Dispatcher + DispatcherAwareBeanPostProcessor
    RuntimeBeanReference dispatcher = getOrRegister(helper, "dispatcher", DefaultDispatcher.class);
    RootBeanDefinition postProcessor = helper.rootBeanDefinition(DispatcherAwareBeanPostProcessor.class);
    postProcessor.getConstructorArgumentValues().addIndexedArgumentValue(0, dispatcher);
    helper.register(postProcessor);

    // State Handler
    RuntimeBeanReference stateHandler = getOrRegister(helper, "state-handler", ClientFacesViewStateHandler.class);

    // Postback Handler
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.