org.glassfish.jersey
Interface Feature


public interface Feature

A configurable feature.

Typically encapsulates concepts that involve multiple filters, handlers and/or configuration properties.

Author:
Marek Potociar (marek.potociar at oracle.com)

Method Summary
 void onDisable(FeaturesAndProperties configuration)
          Called when the feature is disabled.
 void onEnable(FeaturesAndProperties configuration)
          Called when the feature is enabled.
 

Method Detail

onEnable

void onEnable(FeaturesAndProperties configuration)
Called when the feature is enabled. The responsibility of the feature is to properly update the supplied configuration.

Parameters:
configuration - configuration where the feature should be enabled.

onDisable

void onDisable(FeaturesAndProperties configuration)
Called when the feature is disabled. The responsibility of the feature is to properly update the supplied configuration.

Parameters:
configuration - configuration where the feature should be disabled.


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