Converters

back to index

Converters are classes that implement the (Javadoc referenceIConverter) and that provide conversion facilities from one data type to another. Converters must be thread-safe, since only one instance is created for all the conversions that a particular converter can handle. Currently, dynject can handle the following conversions automatically:

All the converters are instantiated at startup and registered in a global cache. This is handled by the Javadoc referenceConverters class

Although the default converters are usually fine, there are occasions in which you'd want to use converting annotations that allow you to specify a different pattern (especially true for dates and times)