Package com.earth2me.essentials
Class ProviderFactory
java.lang.Object
com.earth2me.essentials.ProviderFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
<P extends net.ess3.provider.Provider>
PGets the provider which has been selected for the given type.final void
registerProvider
(Class<? extends net.ess3.provider.Provider>... toRegister)
-
Constructor Details
-
ProviderFactory
-
-
Method Details
-
get
Gets the provider which has been selected for the given type.- Parameters:
providerClass
- The provider type.- Returns:
- the provider or null if no provider could be selected for that type.
-
registerProvider
@SafeVarargs public final void registerProvider(Class<? extends net.ess3.provider.Provider>... toRegister) -
finalizeRegistration
public void finalizeRegistration()
-