com.sun.jersey.server.impl.jcdi
Class JCDIComponentProviderFactory

java.lang.Object
  extended by com.sun.jersey.server.impl.jcdi.JCDIComponentProviderFactory
All Implemented Interfaces:
ComponentProviderFactory<IoCComponentProvider>, IoCComponentProcessorFactoryInitializer, IoCComponentProviderFactory

public class JCDIComponentProviderFactory
extends java.lang.Object
implements IoCComponentProviderFactory, IoCComponentProcessorFactoryInitializer

Author:
Paul.Sandoz@Sun.Com

Constructor Summary
JCDIComponentProviderFactory(java.lang.Object bm)
           
 
Method Summary
 IoCComponentProvider getComponentProvider(java.lang.Class<?> c)
          Get the IoC component provider for a class.
 IoCComponentProvider getComponentProvider(ComponentContext cc, java.lang.Class<?> c)
          Get the IoC component provider for a class with additional context.
 void init(IoCComponentProcessorFactory cpf)
          Initialize with the IoCComponentProcessorFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCDIComponentProviderFactory

public JCDIComponentProviderFactory(java.lang.Object bm)
Method Detail

init

public void init(IoCComponentProcessorFactory cpf)
Description copied from interface: IoCComponentProcessorFactoryInitializer
Initialize with the IoCComponentProcessorFactory.

Specified by:
init in interface IoCComponentProcessorFactoryInitializer
Parameters:
cpf - the IoC component processor factory.

getComponentProvider

public IoCComponentProvider getComponentProvider(java.lang.Class<?> c)
Description copied from interface: IoCComponentProviderFactory
Get the IoC component provider for a class.

Specified by:
getComponentProvider in interface ComponentProviderFactory<IoCComponentProvider>
Specified by:
getComponentProvider in interface IoCComponentProviderFactory
Parameters:
c - the class
Returns:
the IoC component provider for the class, otherwise null if the class is not supported.

getComponentProvider

public IoCComponentProvider getComponentProvider(ComponentContext cc,
                                                 java.lang.Class<?> c)
Description copied from interface: IoCComponentProviderFactory
Get the IoC component provider for a class with additional context.

The additional context will be associated with the annotations and optionally an annotated object. For example, a component provider may be requested for a class that is the type of a Field, or be requested for a class that is the type of a method parameter.

Specified by:
getComponentProvider in interface IoCComponentProviderFactory
Parameters:
cc - the component context to obtain annotations and the annotated object (if present).
c - the class
Returns:
the IoC component provider for the class, otherwise null if the class is not supported.


Copyright © 2011 Sun Microsystems, Inc. All Rights Reserved.