org.glassfish.jersey.internal.spi
Interface AutoDiscoverable

All Known Implementing Classes:
ServerFiltersAutoDiscoverable, WadlAutoDiscoverable

public interface AutoDiscoverable

A service provider contract for JAX-RS and Jersey components that need to be automatically discovered and registered in runtime configurations.

A component implementing this contract becomes auto-discoverable by adding a new entry with fully qualified name of its implementation class name to a org.glassfish.jersey.internal.spi.AutoDiscoverable file in the META-INF/services directory.

Author:
Michal Gajdos (michal.gajdos at oracle.com)

Method Summary
 void configure(FeatureContext context)
          A call-back method called when an auto-discoverable component is to be configured in a given runtime configuration scope.
 

Method Detail

configure

void configure(FeatureContext context)
A call-back method called when an auto-discoverable component is to be configured in a given runtime configuration scope.

Note that as with JAX-RS features, before registering new JAX-RS components in a given configurable context, an auto-discoverable component should verify that newly registered components are not already registered in the configurable context.

Parameters:
context - configurable context in which the auto-discoverable should be configured.


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