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

public Class Jetty6InjectionProvider

extends DiscoverableInjectionProvider
Class Inheritance
Imports
com.sun.faces.spi.DiscoverableInjectionProvider, .InjectionProviderException, org.mortbay.jetty.plus.annotation.InjectionCollection, .LifeCycleCallbackCollection, org.mortbay.jetty.annotations.AnnotationParser, org.mortbay.jetty.webapp.WebAppContext

See http://docs.codehaus.org/display/JETTY/Annotations for details on Jetty's supported Annotations.

Field Summary

Modifier and TypeField and Description
private LifeCycleCallbackCollection
private InjectionCollection

Constructor Summary

AccessConstructor and Description
public
Jetty6InjectionProvider()

Construct a new Jetty6InjectionProvider instance.

Method Summary

Modifier and TypeMethod and Description
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
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 com.sun.faces.spi.DiscoverableInjectionProvider:
isInjectionFeatureAvailable

Field Detail

callbacksback to summary
private LifeCycleCallbackCollection callbacks
injectionsback to summary
private InjectionCollection injections

Constructor Detail

Jetty6InjectionProviderback to summary
public Jetty6InjectionProvider()

Construct a new Jetty6InjectionProvider instance.

Method Detail

injectback to summary
public void inject(Object managedBean) throws InjectionProviderException

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

This method must not invoke any methods annotated with @PostConstruct

Parameters
managedBean:Object

the target managed bean

Exceptions
InjectionProviderException:
if an error occurs during resource injection
invokePostConstructback to summary
public void invokePostConstruct(Object managedBean) throws InjectionProviderException

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).

Parameters
managedBean:Object

the target managed bean

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.

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

Exceptions
InjectionProviderException:
if an error occurs when invoking the method annotated by the @PreDestroy annotation