org.apache.ldap.server.schema
Class MatchingRuleUseRegistryMonitorAdapter

java.lang.Object
  extended byorg.apache.ldap.server.schema.MatchingRuleUseRegistryMonitorAdapter
All Implemented Interfaces:
MatchingRuleUseRegistryMonitor

public class MatchingRuleUseRegistryMonitorAdapter
extends java.lang.Object
implements MatchingRuleUseRegistryMonitor

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

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

Constructor Summary
MatchingRuleUseRegistryMonitorAdapter()
           
 
Method Summary
 void lookedUp(org.apache.ldap.common.schema.MatchingRuleUse matchingRuleUse)
          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.ldap.common.schema.MatchingRuleUse matchingRuleUse)
          Monitors when a MatchingRuleUse is registered successfully.
 void registerFailed(org.apache.ldap.common.schema.MatchingRuleUse matchingRuleUse, 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

MatchingRuleUseRegistryMonitorAdapter

public MatchingRuleUseRegistryMonitorAdapter()
Method Detail

registered

public void registered(org.apache.ldap.common.schema.MatchingRuleUse matchingRuleUse)
Description copied from interface: MatchingRuleUseRegistryMonitor
Monitors when a MatchingRuleUse is registered successfully.

Specified by:
registered in interface MatchingRuleUseRegistryMonitor
Parameters:
matchingRuleUse - the MatchingRuleUse successfully registered

lookedUp

public void lookedUp(org.apache.ldap.common.schema.MatchingRuleUse matchingRuleUse)
Description copied from interface: MatchingRuleUseRegistryMonitor
Monitors when a Comparator is successfully looked up.

Specified by:
lookedUp in interface MatchingRuleUseRegistryMonitor
Parameters:
matchingRuleUse - the MatchingRuleUse successfully lookedup

lookupFailed

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

Specified by:
lookupFailed in interface MatchingRuleUseRegistryMonitor
Parameters:
oid - the name of the matchingRuleUse
fault - the exception to be thrown for the fault

registerFailed

public void registerFailed(org.apache.ldap.common.schema.MatchingRuleUse matchingRuleUse,
                           java.lang.Throwable fault)
Description copied from interface: MatchingRuleUseRegistryMonitor
Monitors when a registration attempt fails.

Specified by:
registerFailed in interface MatchingRuleUseRegistryMonitor
Parameters:
matchingRuleUse - the MatchingRuleUse which failed registration
fault - the exception to be thrown for the fault