Class ClassToInstanceLookupControllerFactory
- java.lang.Object
-
- org.minifx.fxmlloading.factories.impl.ClassToInstanceLookupControllerFactory
-
- All Implemented Interfaces:
javafx.util.Callback<java.lang.Class<?>,java.lang.Object>
,ControllerFactory
public class ClassToInstanceLookupControllerFactory extends java.lang.Object implements ControllerFactory
A pseudo factory, which provides instances from a mapThis class is not threadsafe
-
-
Constructor Summary
Constructors Constructor Description ClassToInstanceLookupControllerFactory(java.util.Map<java.lang.Class<?>,java.lang.Object> instances)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
call(java.lang.Class<?> param)
static ClassToInstanceLookupControllerFactory
ofInstances(java.lang.Iterable<?> controllerInstances)
-
-
-
Method Detail
-
ofInstances
public static final ClassToInstanceLookupControllerFactory ofInstances(java.lang.Iterable<?> controllerInstances)
-
call
public java.lang.Object call(java.lang.Class<?> param)
- Specified by:
call
in interfacejavafx.util.Callback<java.lang.Class<?>,java.lang.Object>
-
-