Class DiscoverableInjectionProvider

java.lang.Object
com.sun.faces.spi.DiscoverableInjectionProvider
All Implemented Interfaces:
InjectionProvider

public abstract class DiscoverableInjectionProvider
extends Object
implements InjectionProvider

InjectionProviders that implement this interface can be configured via META-INF/services/com.sun.faces.spi.injectionprovider.

The format of the configuration entries is:

  • <InjectionProviderClassName>:<DelegateClassName>
    • Example:

    • com.sun.faces.vendor.GlassFishInjectionProvider:com.sun.enterprise.InjectionManager

    Multiple DiscoverableInjectionProviders can be configured within a single services entry.

  • Constructor Details

  • Method Details

    • isInjectionFeatureAvailable

      public static boolean isInjectionFeatureAvailable​(String delegateClass)
      Parameters:
      delegateClass - the name of the delegate used by the InjectionProvider implementation.
      Returns:
      returns true if the InjectionProvider instance is appropriate for the container its currently deployed within, otherwise return false