Class WebContainerInjectionProvider

  • All Implemented Interfaces:
    InjectionProvider

    public class WebContainerInjectionProvider
    extends Object
    implements InjectionProvider

    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.

    • Constructor Detail

      • WebContainerInjectionProvider

        public WebContainerInjectionProvider()
    • Method Detail

      • inject

        public void inject​(Object managedBean)
                    throws InjectionProviderException
        Description copied from interface: InjectionProvider

        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

        Specified by:
        inject in interface InjectionProvider
        Parameters:
        managedBean - the target managed bean
        Throws:
        InjectionProviderException - if an error occurs during resource injection