org.glassfish.jersey.server.spring
Class SpringComponentProvider

java.lang.Object
  extended by org.glassfish.jersey.server.spring.SpringComponentProvider
All Implemented Interfaces:
ComponentProvider

public class SpringComponentProvider
extends Object
implements ComponentProvider

Custom ComponentProvider class. Responsible for 1) bootstrapping Jersey 2 Spring integration and 2) making Jersey skip JAX-RS Spring component life-cycle management and leave it to us.

Author:
Marko Asplund (marko.asplund at yahoo.com)

Constructor Summary
SpringComponentProvider()
           
 
Method Summary
 boolean bind(Class<?> component, Set<Class<?>> providerContracts)
           
 void done()
           
 void initialize(org.glassfish.hk2.api.ServiceLocator locator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringComponentProvider

public SpringComponentProvider()
Method Detail

initialize

public void initialize(org.glassfish.hk2.api.ServiceLocator locator)
Specified by:
initialize in interface ComponentProvider

bind

public boolean bind(Class<?> component,
                    Set<Class<?>> providerContracts)
Specified by:
bind in interface ComponentProvider

done

public void done()
Specified by:
done in interface ComponentProvider


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.