Class ProviderFactory

java.lang.Object
com.earth2me.essentials.ProviderFactory

public class ProviderFactory extends Object
  • Constructor Details

    • ProviderFactory

      public ProviderFactory(Essentials essentials)
  • Method Details

    • get

      public <P extends net.ess3.provider.Provider> P get(Class<P> providerClass)
      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()