Package br.com.caelum.iogi.conversion

Examples of br.com.caelum.iogi.conversion.StringConverter


      .add(fallbackToNull(new EnumConverter()))
      .add(fallbackToNull(new FloatWrapperConverter()))
      .add(fallbackToNull(new IntegerWrapperConverter()))
      .add(fallbackToNull(new LongWrapperConverter()))
      .add(fallbackToNull(new ShortWrapperConverter()))
      .add(fallbackToNull(new StringConverter()))
      .add(fallbackToNull(new LocaleBasedCalendarConverter(localeProvider)))
      .add(fallbackTo(new BooleanPrimitiveConverter(), false))
      .add(fallbackTo(new BytePrimitiveConverter(), (byte)0))
      .add(fallbackTo(new CharacterPrimitiveConverter(), (char)0))
      .add(fallbackTo(new DoublePrimitiveConverter(), 0d))
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);
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.conversion.StringConverter

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.