JBoss Java Authentication SPI for Containers 1.0 API 1.0.0.Final

javax.security.auth.message.config
Interface RegistrationListener


public interface RegistrationListener

A Listener that may associated with a provider registration by a user of the registration. The Listener will be notified if the corresponding provider is unregistered or replaced.

Since:
Jul 10, 2007
Version:
$Revision: 101881 $
Author:
Anil.Saldhana@redhat.com

Method Summary
 void notify(String layer, String appContext)
          Notify the listener that a registration with which it was associated, was replaced or unregistered.
 

Method Detail

notify

void notify(String layer,
            String appContext)
Notify the listener that a registration with which it was associated, was replaced or unregistered. When a RegistrationListener is associated with a provider registration within the factory, the factory must call its notify method when the corresponding registration is unregistered or replaced.

Parameters:
layer - a String identifying the message layer(s) corresponding to registration for which the listerner is being notified.
appContext - a String value identifying the application context(s) corresponding to registration for which the listerner is being notified. The factory detaches the listener from the corresponding registration once the listener has been notified for the registration. The detachListerner method must be called to detach listeners that are no longer in use.

JBoss Java Authentication SPI for Containers 1.0 API 1.0.0.Final

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.