Top Description Inners Fields Constructors Methods
com.sun.faces.vendor

public Class WebContainerInjectionProvider

extends Object
implements InjectionProvider
Class Inheritance
All Implemented Interfaces
com.sun.faces.spi.InjectionProvider
Static Imports
java.util.logging.Level.WARNING

This InjectionProvider will be used if the PostConstruct and PreDestroy annotations are present, but no specific InjectionProvider has been configured.

It's important to note that this will not provide resource injection.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final Logger
private static Map<Class<?>, ConcurrentHashMap<Class<? extends Annotation>, WebContainerInjectionProvider.MethodHolder>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static Method
getAnnotatedMethod(Object managedBean, Class<? extends Annotation> annotation)

private static Method
getAnnotatedMethodForMethodArr(Method[] methods, Class<? extends Annotation> annotation)

public void
inject(Object
the target managed bean
managedBean
)

Implements com.sun.faces.spi.InjectionProvider.inject.

The implementation of this method must perform the following steps:

  • Inject the supported resources per the Servlet 2.5 specification into the provided object
private static void
invokeAnnotatedMethod(Method method, Object managedBean)

public void
invokePostConstruct(Object
the target managed bean
managedBean
)

Implements com.sun.faces.spi.InjectionProvider.invokePostConstruct.

The implemenation of this method must invoke any method marked with the @PostConstruct annotation (per the Common Annotations Specification).

public void
invokePreDestroy(Object
the target managed bean
managedBean
)

Implements com.sun.faces.spi.InjectionProvider.invokePreDestroy.

The implemenation of this method must invoke any method marked with the @PreDestroy annotation (per the Common Annotations Specification).

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final Logger LOGGER
methodsPerClazzback to summary
private static Map<Class<?>, ConcurrentHashMap<Class<? extends Annotation>, WebContainerInjectionProvider.MethodHolder>> methodsPerClazz

Constructor Detail

WebContainerInjectionProviderback to summary
public WebContainerInjectionProvider()

Method Detail

getAnnotatedMethodback to summary
private static Method getAnnotatedMethod(Object managedBean, Class<? extends Annotation> annotation)
getAnnotatedMethodForMethodArrback to summary
private static Method getAnnotatedMethodForMethodArr(Method[] methods, Class<? extends Annotation> annotation)
injectback to summary
public void inject(Object managedBean) throws InjectionProviderException

Implements com.sun.faces.spi.InjectionProvider.inject.

Doc from com.sun.faces.spi.InjectionProvider.inject.

The implementation of this method must perform the following steps:

  • Inject the supported resources per the Servlet 2.5 specification into the provided object

This method must not invoke any methods annotated with @PostConstruct

Parameters
managedBean:Object

the target managed bean

Annotations
@Override
Exceptions
InjectionProviderException:
if an error occurs during resource injection
invokeAnnotatedMethodback to summary
private static void invokeAnnotatedMethod(Method method, Object managedBean) throws InjectionProviderException
invokePostConstructback to summary
public void invokePostConstruct(Object managedBean) throws InjectionProviderException

Implements com.sun.faces.spi.InjectionProvider.invokePostConstruct.

Doc from com.sun.faces.spi.InjectionProvider.invokePostConstruct.

The implemenation of this method must invoke any method marked with the @PostConstruct annotation (per the Common Annotations Specification).

Parameters
managedBean:Object

the target managed bean

Annotations
@Override
Exceptions
InjectionProviderException:
if an error occurs when invoking the method annotated by the @PostConstruct annotation
invokePreDestroyback to summary
public void invokePreDestroy(Object managedBean) throws InjectionProviderException

Implements com.sun.faces.spi.InjectionProvider.invokePreDestroy.

Doc from com.sun.faces.spi.InjectionProvider.invokePreDestroy.

The implemenation of this method must invoke any method marked with the @PreDestroy annotation (per the Common Annotations Specification).

Parameters
managedBean:Object

the target managed bean

Annotations
@Override
Exceptions
InjectionProviderException:
if an error occurs when invoking the method annotated by the @PreDestroy annotation
com.sun.faces.vendor back to summary

private Class WebContainerInjectionProvider.MethodHolder

extends Object
Class Inheritance
  • java.lang.Object
  • com.sun.faces.vendor.WebContainerInjectionProvider.MethodHolder

Field Summary

Modifier and TypeField and Description
private final Method

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Method
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

methodback to summary
private final Method method

Constructor Detail

MethodHolderback to summary
public MethodHolder(Method method)

Method Detail

getMethodback to summary
public Method getMethod()