org.glassfish.jersey.client
Class CustomProvidersFeature

java.lang.Object
  extended by org.glassfish.jersey.client.CustomProvidersFeature
All Implemented Interfaces:
javax.ws.rs.client.Feature

public class CustomProvidersFeature
extends Object
implements javax.ws.rs.client.Feature

Feature to provide the single-line registration of custom providers.

Author:
Stepan Kopriva

Constructor Summary
CustomProvidersFeature(Collection<Class<?>> providers)
          Constructs Feature which is used to register providers as providers in Configuration.
 
Method Summary
 void onDisable(javax.ws.rs.client.Configuration c)
           
 void onEnable(javax.ws.rs.client.Configuration c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomProvidersFeature

public CustomProvidersFeature(Collection<Class<?>> providers)
Constructs Feature which is used to register providers as providers in Configuration.

Parameters:
providers - collection of providers which are going to be registered
Method Detail

onEnable

public void onEnable(javax.ws.rs.client.Configuration c)
Specified by:
onEnable in interface javax.ws.rs.client.Feature

onDisable

public void onDisable(javax.ws.rs.client.Configuration c)
Specified by:
onDisable in interface javax.ws.rs.client.Feature


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.