public class InstantiatorLookup<T> extends LazyLookup<T>
InstantiatorLookup class.
| Constructor and Description |
|---|
InstantiatorLookup(Class<? extends T> type,
Instantiater<T> instantiater)
Constructor for InstantiatorLookup.
|
InstantiatorLookup(Instantiater.Typed<T> instantiater)
Constructor for InstantiatorLookup.
|
| Modifier and Type | Method and Description |
|---|---|
protected T |
createInstance()
This method is only called once as soon as the first lookup request is made.
|
Class<? extends T> |
getType()
The type the instance.
|
addChangeListener, addChangeListener, addChangeListenerWeak, addChangeListenerWeak, bind, bind, bindWeak, bindWeak, getValue, lookup, lookups, removeChangeListener, removeChangeListenerlookupNonNullpublic InstantiatorLookup(@Nonnull Class<? extends T> type, @Nonnull Instantiater<T> instantiater)
Constructor for InstantiatorLookup.
type - a Class object.instantiater - a Instantiater object.public InstantiatorLookup(@Nonnull Instantiater.Typed<T> instantiater)
Constructor for InstantiatorLookup.
instantiater - a Instantiater.Typed object.@Nonnull protected T createInstance()
createInstance in class LazyLookup<T>LazyLookup.getType()public Class<? extends T> getType()
getType in class LazyLookup<T>Copyright © 2007–2017 cedarsoft GmbH. All rights reserved.