Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.web.jsf.integration » injection » [javadoc | source]
org.jboss.web.jsf.integration.injection
public class: JBossInjectionProvider [javadoc | source]
java.lang.Object
   org.jboss.web.jsf.integration.injection.JBossInjectionProvider

All Implemented Interfaces:
    com.sun.faces.spi.InjectionProvider

Provides interface between JSF RI and Tomcat Catalina for injection of managed beans as per JSF 1.2 Spec section 5.4.
Constructor:
 public JBossInjectionProvider() 
 protected JBossInjectionProvider(Context namingContext) 
    This constructor allows a subclass to override the default naming context.
    Parameters:
    namingContext - The naming context to use for injection of managed beans. If this param is null then injection of resources will be disabled and JBoss will only call @PostConstruct and
    PreDestroy: methods. -
Method from org.jboss.web.jsf.integration.injection.JBossInjectionProvider Summary:
inject,   invokePostConstruct,   invokePreDestroy,   lookupFieldResource,   lookupMethodResource
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.web.jsf.integration.injection.JBossInjectionProvider Detail:
 public  void inject(Object managedBean) throws InjectionProviderException 
    Inject naming resources into a managed bean and then call methods annotated with @PostConstruct.
 public  void invokePostConstruct(Object managedBean) throws InjectionProviderException 
    Call methods on a managed bean that are annotated with @PostConstruct.
 public  void invokePreDestroy(Object managedBean) throws InjectionProviderException 
    Call methods on a managed bean that are annotated with @PreDestroy.
 protected static  void lookupFieldResource(Context context,
    Object instance,
    Field field,
    String name) throws NamingException, IllegalAccessException 
    Inject resources in specified field.
 protected static  void lookupMethodResource(Context context,
    Object instance,
    Method method,
    String name) throws NamingException, InvocationTargetException, IllegalAccessException 
    Inject resources in specified method.