Package org.spongepowered.api.registry
Interface FactoryProvider
-
public interface FactoryProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
provide(java.lang.Class<T> clazz)
Provides a factory used to create instances of the specified type
-
-
-
Method Detail
-
provide
<T> T provide(java.lang.Class<T> clazz) throws TypeNotFoundException
Provides a factory used to create instances of the specified type- Type Parameters:
T
- The type of factory- Parameters:
clazz
- The factory class- Returns:
- The factory
- Throws:
TypeNotFoundException
- If the type provided has not been registered
-
-