public class ItemExecutorRegistry extends Object
Modifier and Type | Field and Description |
---|---|
private static Map<String,ItemFormConverter> |
executorsByName |
Constructor and Description |
---|
ItemExecutorRegistry() |
Modifier and Type | Method and Description |
---|---|
private static <T extends CompositeItem> |
createCompositeConverter(Class<T> itemClass) |
private static void |
ensureNotNull(ItemFormConverter executor,
String name) |
static ItemFormConverter |
getByName(String name) |
static ItemFormConverter |
getByType(Item.ItemType itemType) |
private static void |
register(Item.ItemType type,
ItemFormConverter executor) |
private static void |
register(String type,
ItemFormConverter executor) |
private static final Map<String,ItemFormConverter> executorsByName
private static <T extends CompositeItem> ItemFormConverter createCompositeConverter(Class<T> itemClass)
private static void register(Item.ItemType type, ItemFormConverter executor)
private static void register(String type, ItemFormConverter executor)
public static ItemFormConverter getByName(String name)
private static void ensureNotNull(ItemFormConverter executor, String name)
public static ItemFormConverter getByType(Item.ItemType itemType)
Copyright © 2018. All rights reserved.