public static final class IntegerUnit.ConverterRegistry extends Object implements ExtensionPoint<IntegerUnit.Converter>
| Constructor and Description |
|---|
ConverterRegistry()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPlugin(IntegerUnit.Converter plugin)
Register a plugin (called at application startup).
|
void |
allPluginsLoaded()
Signal that application has been fully loaded and no more plug-ins will be added.
|
static long |
convert(long value,
Class<? extends IntegerUnit> from,
Class<? extends IntegerUnit> to)
Conversion.
|
Class<IntegerUnit.Converter> |
getPluginClass()
Class of plugin.
|
Collection<IntegerUnit.Converter> |
getPlugins()
Return the list of registered plugins.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprintInfopublic Class<IntegerUnit.Converter> getPluginClass()
ExtensionPointgetPluginClass in interface ExtensionPoint<IntegerUnit.Converter>public void addPlugin(IntegerUnit.Converter plugin)
ExtensionPointaddPlugin in interface ExtensionPoint<IntegerUnit.Converter>public Collection<IntegerUnit.Converter> getPlugins()
ExtensionPointgetPlugins in interface ExtensionPoint<IntegerUnit.Converter>public void allPluginsLoaded()
ExtensionPointallPluginsLoaded in interface ExtensionPoint<IntegerUnit.Converter>public static long convert(long value,
Class<? extends IntegerUnit> from,
Class<? extends IntegerUnit> to)
throws IntegerUnit.UnitConversionException
Copyright © 2019. All rights reserved.