Package org.apache.sis.internal.converter
package org.apache.sis.internal.converter
Default set of
ObjectConverter implementations.
Converter for a given pair of source and target classes
can be obtained with ConverterRegistry.
A system-wide instance of ConverterRegistry with a default set of conversions
is available as SystemRegistry.INSTANCE.
Adding system-wide converters
Applications can add system-wide custom converters either by explicit calls to theSystemRegistry.INSTANCE.register(ObjectConverter) method, or by listing the
fully qualified classnames of their ObjectConverter instances
in a file having exactly the following name:
Applications deployed in a modularization framework like OSGi shall use only the
META-INF approach, because system converters are discarded every time the
classpath changes. Having the converters declared in META-INF ensure that
they will be reloaded when needed.
Alternatively, applications can also use their own ConverterRegistry instance.
Non-system instances do not scan for META-INF and do not discard their content on
classpath changes.
- Since:
- 0.3
- Version:
- 1.0
- Author:
- Martin Desruisseaux (Geomatys)
-
ClassesClassDescriptionThe inverse of
AngleConverter.A collection ofObjectConverterinstances.Handles conversions fromFractionto other kind of numbers.The inverse ofFractionConverter.IdentityConverter<S extends T,T> An object converter which returns the source unchanged.SurjectiveConverter<S,T> Base class for (usually non-invertible) surjectiveObjectConverters.The Apache SIS system-wideConverterRegistry.