@Immutable @IsSPIImplementation public final class PriceTypeConverterRegistrar implements IMicroTypeConverterRegistrarSPI { public void registerMicroTypeConverter (@Nonnull final IMicroTypeConverterRegistry aRegistry) { aRegistry.registerMicroElementTypeConverter (ReadonlyPrice.class, new ReadonlyPriceMicroTypeConverter ()); aRegistry.registerMicroElementTypeConverter (Price.class, new PriceMicroTypeConverter ()); } }
@Immutable @IsSPIImplementation public final class PersonTypeConverterRegistrar implements IMicroTypeConverterRegistrarSPI { public void registerMicroTypeConverter (@Nonnull final IMicroTypeConverterRegistry aRegistry) { aRegistry.registerMicroElementTypeConverter (PersonName.class, new PersonNameMicroTypeConverter ()); } }
@Immutable @IsSPIImplementation public final class AddressTypeConverterRegistrar implements IMicroTypeConverterRegistrarSPI { public void registerMicroTypeConverter (@Nonnull final IMicroTypeConverterRegistry aRegistry) { aRegistry.registerMicroElementTypeConverter (Address.class, new AddressMicroTypeConverter ()); aRegistry.registerMicroElementTypeConverter (ReadonlyAddress.class, new ReadonlyAddressMicroTypeConverter ()); } }
/** * Implement this SPI interface if your JAR file contains external third party * modules. * * @author Philip Helger */ @IsSPIImplementation public final class ThirdPartyModuleProvider_phloc_schedule implements IThirdPartyModuleProviderSPI { public static final IThirdPartyModule QUARTZ = new ThirdPartyModule ("Quartz", "Terracotta", ELicense.APACHE2, new Version (2, 2, 1), "http://www.quartz-scheduler.org/"); @Nullable public IThirdPartyModule [] getAllThirdPartyModules () { return new IThirdPartyModule [] { QUARTZ }; } }
/** * Implement this SPI interface if your JAR file contains external third party * modules. * * @author Philip Helger */ @IsSPIImplementation public final class ThirdPartyModuleProvider_phloc_poi implements IThirdPartyModuleProviderSPI { public static final IThirdPartyModule POI = new ThirdPartyModule ("Apache POI", "Apache", ELicense.APACHE2, new Version (3, 10, 0), "http://poi.apache.org/"); @Nullable public IThirdPartyModule [] getAllThirdPartyModules () { return new IThirdPartyModule [] { POI }; } }
/** * Implement this SPI interface if your JAR file contains external third party * modules. * * @author Philip Helger */ @IsSPIImplementation public final class ThirdPartyModuleProvider_phloc_xmldsig implements IThirdPartyModuleProviderSPI { public static final IThirdPartyModule SANTUARIO = new ThirdPartyModule ("Apache Santuario", "The Apache Software Foundation", ELicense.APACHE2, new Version (1, 5, 6), "http://santuario.apache.org/"); @Nonnull public IThirdPartyModule [] getAllThirdPartyModules () { return new IThirdPartyModule [] { SANTUARIO }; } }
@Immutable @IsSPIImplementation public final class ExchangeRatioTypeConverterRegistrar implements IMicroTypeConverterRegistrarSPI { public void registerMicroTypeConverter (@Nonnull final IMicroTypeConverterRegistry aRegistry) { aRegistry.registerMicroElementTypeConverter (ExchangeRatio.class, new ExchangeRatioMicroTypeConverter ()); aRegistry.registerMicroElementTypeConverter (ExchangeRatioList.class, new ExchangeRatioListMicroTypeConverter ()); } }
@Immutable @IsSPIImplementation public final class TelephoneTypeConverterRegistrar implements IMicroTypeConverterRegistrarSPI { public void registerMicroTypeConverter (@Nonnull final IMicroTypeConverterRegistry aRegistry) { aRegistry.registerMicroElementTypeConverter (TelephoneNumber.class, new TelephoneNumberMicroTypeConverter ()); aRegistry.registerMicroElementTypeConverter (ReadonlyTelephoneNumber.class, new ReadonlyTelephoneNumberMicroTypeConverter ()); } }
@Immutable @IsSPIImplementation public final class CurrencyValueTypeConverterRegistrar implements IMicroTypeConverterRegistrarSPI { public void registerMicroTypeConverter (@Nonnull final IMicroTypeConverterRegistry aRegistry) { aRegistry.registerMicroElementTypeConverter (ReadonlyCurrencyValue.class, new ReadonlyCurrencyMicroTypeConverter ()); aRegistry.registerMicroElementTypeConverter (CurrencyValue.class, new CurrencyMicroTypeConverter ()); } }
/** * Implementation of {@link IHashCodeImplementationRegistrarSPI} for * {@link JAXBElement}. * * @author Philip Helger */ @IsSPIImplementation public final class JAXBHashCodeImplementationRegistrarSPI implements IHashCodeImplementationRegistrarSPI { public void registerHashCodeImplementations (@Nonnull final IHashCodeImplementationRegistry aRegistry) { // JAXBElement does not implement hashCode! aRegistry.registerHashCodeImplementation (JAXBElement.class, new IHashCodeImplementation () { public int getHashCode (final Object aObj) { final JAXBElement <?> aRealObj = (JAXBElement <?>) aObj; return new HashCodeGenerator (aRealObj.getClass ()).append (aRealObj.getDeclaredType ()) .append (aRealObj.getName ()) .append (aRealObj.getScope ()) .append (aRealObj.isNil ()) .append (aRealObj.getValue ()) .getHashCode (); } }); } }
/** * Implementation of {@link IEqualsImplementationRegistrarSPI} for * {@link JAXBElement}. * * @author Philip Helger */ @IsSPIImplementation public final class JAXBEqualsImplementationRegistrarSPI implements IEqualsImplementationRegistrarSPI { private static final class EqualsImplementationJAXBElement implements IEqualsImplementation { public boolean areEqual (final Object aObj1, final Object aObj2) { final JAXBElement <?> aRealObj1 = (JAXBElement <?>) aObj1; final JAXBElement <?> aRealObj2 = (JAXBElement <?>) aObj2; return EqualsImplementationRegistry.areEqual (aRealObj1.getDeclaredType (), aRealObj2.getDeclaredType ()) && EqualsImplementationRegistry.areEqual (aRealObj1.getName (), aRealObj2.getName ()) && EqualsImplementationRegistry.areEqual (aRealObj1.getScope (), aRealObj2.getScope ()) && EqualsUtils.equals (aRealObj1.isNil (), aRealObj2.isNil ()) && EqualsImplementationRegistry.areEqual (aRealObj1.getValue (), aRealObj2.getValue ()); } } public void registerEqualsImplementations (@Nonnull final IEqualsImplementationRegistry aRegistry) { // JAXBElement does not implement equals! aRegistry.registerEqualsImplementation (JAXBElement.class, new EqualsImplementationJAXBElement ()); } }
@IsSPIImplementation public final class ThirdPartyModuleProvider_phloc_commons implements IThirdPartyModuleProviderSPI
@Immutable @IsSPIImplementation public final class EmailAddressTypeConverterRegistrar implements IMicroTypeConverterRegistrarSPI { public void registerMicroTypeConverter (@Nonnull final IMicroTypeConverterRegistry aRegistry) { aRegistry.registerMicroElementTypeConverter (ReadonlyExtendedEmailAddress.class, new ReadonlyExtendedEmailAddressMicroTypeConverter ()); aRegistry.registerMicroElementTypeConverter (ExtendedEmailAddress.class, new ExtendedEmailAddressMicroTypeConverter ()); aRegistry.registerMicroElementTypeConverter (ExtendedEmailAddressWithID.class, new ExtendedEmailAddressWithIDMicroTypeConverter ()); } }
@IsSPIImplementation public final class ThirdPartyModuleProvider_phloc_db implements IThirdPartyModuleProviderSPI
/** * Implementation of {@link ISerializationConverterRegistrarSPI} for basic types * like Charset etc. * * @author Philip Helger */ @Immutable @IsSPIImplementation public final class BasicSerializationConverterRegistrar implements ISerializationConverterRegistrarSPI { private static final class SerializationConverterCharset implements ISerializationConverter { public void writeConvertedObject (@Nonnull final Object aSourceObject, @Nonnull final ObjectOutputStream aOOS) throws IOException { aOOS.writeUTF (((Charset) aSourceObject).name ()); } public Object readConvertedObject (@Nonnull final ObjectInputStream aOIS) throws IOException { final String sCharsetName = aOIS.readUTF (); return CharsetManager.getCharsetFromName (sCharsetName); } } public void registerSerializationConverter (@Nonnull final ISerializationConverterRegistry aRegistry) { aRegistry.registerSerializationConverter (Charset.class, new SerializationConverterCharset ()); } }
@IsSPIImplementation public final class LocaleTypeConverterRegistrar implements ITypeConverterRegistrarSPI
@IsSPIImplementation public final class CharsetTypeConverterRegistrar implements ITypeConverterRegistrarSPI
@IsSPIImplementation public final class BasicMicroTypeConverterRegistrar implements IMicroTypeConverterRegistrarSPI
@IsSPIImplementation public final class DefaultHashCodeImplementationRegistrarSPI implements IHashCodeImplementationRegistrarSPI
@IsSPIImplementation public final class MultiLingualTextMicroTypeConverterRegistrar implements IMicroTypeConverterRegistrarSPI