java.lang.Object
org.tquadrat.foundation.util.stringconverter.ClassStringConverter
All Implemented Interfaces:
Serializable, StringConverter<Class<?>>

@ClassVersion(sourceVersion="$Id: ClassStringConverter.java 1060 2023-09-24 19:21:40Z tquadrat $") @API(status=STABLE, since="0.0.6") public final class ClassStringConverter extends Object implements StringConverter<Class<?>>
An implementation of StringConverter for Class values.

The method fromString(CharSequence) will use Class.forName(String, boolean, ClassLoader) to load the class with the given name. This means that the conversion may fail even for an otherwise valid class name when the respective class is not on the CLASSPATH or otherwise loadable.

It uses the ClassLoader that was used to load the caller for this method, and the boolean argument will be set to false, meaning that the class will not be initialised if not loaded previously.
Author:
Thomas Thrien (thomas.thrien@tquadrat.org)
Version:
$Id: ClassStringConverter.java 1060 2023-09-24 19:21:40Z tquadrat $
Since:
0.0.6
See Also:
UML Diagram
UML Diagram for "org.tquadrat.foundation.util.stringconverter.ClassStringConverter"

UML Diagram for "org.tquadrat.foundation.util.stringconverter.ClassStringConverter"

UML Diagram for "org.tquadrat.foundation.util.stringconverter.ClassStringConverter"