K
- Factory keyV
- Instance typepublic class OConfigurableStatefulFactory<K,V> extends Object
Modifier and Type | Field and Description |
---|---|
protected Class<? extends V> |
defaultClass |
protected Map<K,Class<? extends V>> |
registry |
Constructor and Description |
---|
OConfigurableStatefulFactory() |
Modifier and Type | Method and Description |
---|---|
Class<? extends V> |
get(K iKey) |
Class<? extends V> |
getDefaultClass() |
Set<K> |
getRegisteredNames() |
V |
newInstance(K iKey) |
V |
newInstanceOfDefaultClass() |
OConfigurableStatefulFactory<K,V> |
register(K iKey,
Class<? extends V> iValue) |
<C extends Class<? extends V>> |
setDefaultClass(C defaultClass) |
OConfigurableStatefulFactory<K,V> |
unregister(K iKey) |
OConfigurableStatefulFactory<K,V> |
unregisterAll() |
public V newInstanceOfDefaultClass()
public OConfigurableStatefulFactory<K,V> unregister(K iKey)
public OConfigurableStatefulFactory<K,V> unregisterAll()
public <C extends Class<? extends V>> OConfigurableStatefulFactory<K,V> setDefaultClass(C defaultClass)
Copyright © 2009–2020 OrientDB. All rights reserved.