Package br.com.caelum.iogi.collections

Examples of br.com.caelum.iogi.collections.ArrayInstantiator$ArrayFactory


      .add(fallbackTo(new DoublePrimitiveConverter(), 0d))
      .add(fallbackTo(new FloatPrimitiveConverter(), 0f))
      .add(fallbackTo(new IntegerPrimitiveConverter(), 0))
      .add(fallbackTo(new LongPrimitiveConverter(), 0l))
      .add(fallbackTo(new ShortPrimitiveConverter(), (short)0))
      .add(new ArrayInstantiator(new DelegateToAllInstantatiors()))
      .add(new ListInstantiator(new DelegateToAllInstantatiors()))
      .add(new ObjectInstantiator(new DelegateToAllInstantatiors(), javaEmptyObjectsProvider(dependencyProvider), new ParanamerParameterNamesProvider()))
      .build();
 
    this.allInstantiators = new MultiInstantiator(all);
View Full Code Here


   
    List<Instantiator<?>> instantiatorList = ImmutableList.of(
        new RequestAttributeInstantiator(request),
        new VRaptorTypeConverter(converters),
        FallbackConverter.fallbackToNull(new StringConverter()),
        new ArrayAdapter(new ArrayInstantiator(this)),
        new NullDecorator(new ListInstantiator(this)),
        new NullDecorator(new SetInstantiator(this)),
        new DependencyInstantiator(),
        objectInstantiator);
    multiInstantiator = new MultiInstantiator(instantiatorList);
View Full Code Here

    ObjectInstantiator objectInstantiator = new ObjectInstantiator(this, provider, parameterNameProvider);
    List<Instantiator<?>> instantiatorList = ImmutableList.of(
      new RequestAttributeInstantiator(request),
      new VRaptorTypeConverter(converters),
      FallbackConverter.fallbackToNull(new StringConverter()),
      new ArrayAdapter(new ArrayInstantiator(this)),
      new NullDecorator(new ListInstantiator(this)), //NOTE: NullDecorator is here to preserve existing behaviour. Don't know if it is the ideal one, though.
      new DependencyInstantiator(objectInstantiator),
      objectInstantiator);
    multiInstantiator = new MultiInstantiator(instantiatorList);
  }
View Full Code Here

TOP

Related Classes of br.com.caelum.iogi.collections.ArrayInstantiator$ArrayFactory

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.