/**
  * Installs a {@link ConverterLocator} preconfigured with a number of implementations to support
  * Isis specific objects.
  *
  * <p>In general, it shouldn't be necessary to override this method.
  */
 @Override
 protected IConverterLocator newConverterLocator() {
   final ConverterLocator converterLocator = new ConverterLocator();
   converterLocator.set(ObjectAdapter.class, new ConverterForObjectAdapter());
   converterLocator.set(ObjectAdapterMemento.class, new ConverterForObjectAdapterMemento());
   return converterLocator;
 }
Beispiel #2
0
 /** Constructor */
 public ConverterLocator() {
   set(Boolean.TYPE, BooleanConverter.INSTANCE);
   set(Boolean.class, BooleanConverter.INSTANCE);
   set(Byte.TYPE, ByteConverter.INSTANCE);
   set(Byte.class, ByteConverter.INSTANCE);
   set(Character.TYPE, CharacterConverter.INSTANCE);
   set(Character.class, CharacterConverter.INSTANCE);
   set(Double.TYPE, DoubleConverter.INSTANCE);
   set(Double.class, DoubleConverter.INSTANCE);
   set(Float.TYPE, FloatConverter.INSTANCE);
   set(Float.class, FloatConverter.INSTANCE);
   set(Integer.TYPE, IntegerConverter.INSTANCE);
   set(Integer.class, IntegerConverter.INSTANCE);
   set(Long.TYPE, LongConverter.INSTANCE);
   set(Long.class, LongConverter.INSTANCE);
   set(Short.TYPE, ShortConverter.INSTANCE);
   set(Short.class, ShortConverter.INSTANCE);
   set(Date.class, new DateConverter());
   set(Calendar.class, new CalendarConverter());
   set(java.sql.Date.class, new SqlDateConverter());
   set(java.sql.Time.class, new SqlTimeConverter());
   set(java.sql.Timestamp.class, new SqlTimestampConverter());
   set(BigDecimal.class, new BigDecimalConverter());
 }