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
InjectionProvider
s 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 DiscoverableInjectionProvider
s can be configured within a single services entry.
-
Constructor Summary
Constructors Constructor Description DiscoverableInjectionProvider()
-
Method Summary
Modifier and Type Method Description static boolean
isInjectionFeatureAvailable(String delegateClass)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 theInjectionProvider
implementation.- Returns:
- returns
true
if theInjectionProvider
instance is appropriate for the container its currently deployed within, otherwise returnfalse
-