Package com.sun.faces.spi
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>com.sun.faces.vendor.GlassFishInjectionProvider:com.sun.enterprise.InjectionManager
Example:
Multiple DiscoverableInjectionProviders can be configured within a single services entry.
-
Constructor Summary
Constructors Constructor Description DiscoverableInjectionProvider() -
Method Summary
Modifier and Type Method Description static booleanisInjectionFeatureAvailable(String delegateClass)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sun.faces.spi.InjectionProvider
inject, invokePostConstruct, invokePreDestroy
-
Constructor Details
-
DiscoverableInjectionProvider
public DiscoverableInjectionProvider()
-
-
Method Details
-
isInjectionFeatureAvailable
- Parameters:
delegateClass- the name of the delegate used by theInjectionProviderimplementation.- Returns:
- returns
trueif theInjectionProviderinstance is appropriate for the container its currently deployed within, otherwise returnfalse
-