org.apache.directory.server.core.schema
Class NameFormRegistryMonitorAdapter

java.lang.Object
  extended by org.apache.directory.server.core.schema.NameFormRegistryMonitorAdapter
All Implemented Interfaces:
NameFormRegistryMonitor

public class NameFormRegistryMonitorAdapter
extends java.lang.Object
implements NameFormRegistryMonitor

A simple do nothing monitor adapter for NameFormRegistries. Note for safty exception based callback print the stack tract to stderr.

Version:
$Rev: 434579 $
Author:
Apache Directory Project

Constructor Summary
NameFormRegistryMonitorAdapter()
           
 
Method Summary
 void lookedUp(org.apache.directory.shared.ldap.schema.NameForm nameForm)
          Monitors when a Comparator is successfully looked up.
 void lookupFailed(java.lang.String oid, java.lang.Throwable fault)
          Monitors when a lookup attempt fails.
 void registered(org.apache.directory.shared.ldap.schema.NameForm nameForm)
          Monitors when a NameForm is registered successfully.
 void registerFailed(org.apache.directory.shared.ldap.schema.NameForm nameForm, java.lang.Throwable fault)
          Monitors when a registration attempt fails.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameFormRegistryMonitorAdapter

public NameFormRegistryMonitorAdapter()
Method Detail

registered

public void registered(org.apache.directory.shared.ldap.schema.NameForm nameForm)
Description copied from interface: NameFormRegistryMonitor
Monitors when a NameForm is registered successfully.

Specified by:
registered in interface NameFormRegistryMonitor
Parameters:
nameForm - the NameForm successfully registered

lookedUp

public void lookedUp(org.apache.directory.shared.ldap.schema.NameForm nameForm)
Description copied from interface: NameFormRegistryMonitor
Monitors when a Comparator is successfully looked up.

Specified by:
lookedUp in interface NameFormRegistryMonitor
Parameters:
nameForm - the NameForm successfully lookedup

lookupFailed

public void lookupFailed(java.lang.String oid,
                         java.lang.Throwable fault)
Description copied from interface: NameFormRegistryMonitor
Monitors when a lookup attempt fails.

Specified by:
lookupFailed in interface NameFormRegistryMonitor
Parameters:
oid - the OID for the NameForm to lookup
fault - the exception to be thrown for the fault

registerFailed

public void registerFailed(org.apache.directory.shared.ldap.schema.NameForm nameForm,
                           java.lang.Throwable fault)
Description copied from interface: NameFormRegistryMonitor
Monitors when a registration attempt fails.

Specified by:
registerFailed in interface NameFormRegistryMonitor
Parameters:
nameForm - the NameForm which failed registration
fault - the exception to be thrown for the fault


Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.