public class NamedWriteableRegistry extends Object
NamedWriteable
objects. Allows to register and retrieve prototype instances of writeable objects
given their name.Constructor and Description |
---|
NamedWriteableRegistry() |
Modifier and Type | Method and Description |
---|---|
<T> NamedWriteable<? extends T> |
getPrototype(Class<T> categoryClass,
String name)
Returns a prototype of the
NamedWriteable object identified by the name provided as argument and its category |
<T> void |
registerPrototype(Class<T> categoryClass,
NamedWriteable<? extends T> namedWriteable)
Registers a
NamedWriteable prototype given its category |
public <T> void registerPrototype(Class<T> categoryClass, NamedWriteable<? extends T> namedWriteable)
NamedWriteable
prototype given its categorypublic <T> NamedWriteable<? extends T> getPrototype(Class<T> categoryClass, String name)
NamedWriteable
object identified by the name provided as argument and its categoryCopyright © 2009–2016. All rights reserved.