com.sun.jersey.server.impl.cdi
Class CDIComponentProviderFactory

java.lang.Object
  extended by com.sun.jersey.server.impl.cdi.CDIComponentProviderFactory
All Implemented Interfaces:
ComponentProviderFactory<IoCComponentProvider>, IoCComponentProviderFactory, WebApplicationListener

public class CDIComponentProviderFactory
extends java.lang.Object
implements IoCComponentProviderFactory, WebApplicationListener

Factory for IoCComponentProvider for CDI beans. Crucially, it passes the WebApplication and ResourceConfig on to the CDIExtension, allowing beans registered by the extension to (finally) do some work.

Author:
Paul.Sandoz@Sun.Com, robc

Constructor Summary
CDIComponentProviderFactory(java.lang.Object bm, ResourceConfig rc, WebApplication wa)
           
 
Method Summary
 IoCComponentProvider getComponentProvider(java.lang.Class<?> c)
           
 IoCComponentProvider getComponentProvider(ComponentContext cc, java.lang.Class<?> c)
           
 void onWebApplicationReady()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDIComponentProviderFactory

public CDIComponentProviderFactory(java.lang.Object bm,
                                   ResourceConfig rc,
                                   WebApplication wa)
Method Detail

onWebApplicationReady

public void onWebApplicationReady()
Specified by:
onWebApplicationReady in interface WebApplicationListener

getComponentProvider

public IoCComponentProvider getComponentProvider(java.lang.Class<?> c)
Specified by:
getComponentProvider in interface ComponentProviderFactory<IoCComponentProvider>
Specified by:
getComponentProvider in interface IoCComponentProviderFactory

getComponentProvider

public IoCComponentProvider getComponentProvider(ComponentContext cc,
                                                 java.lang.Class<?> c)
Specified by:
getComponentProvider in interface IoCComponentProviderFactory


Copyright © 2014 Oracle Corporation. All Rights Reserved.