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

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

public class ObjectClassRegistryMonitorAdapter
extends java.lang.Object
implements ObjectClassRegistryMonitor

A do nothing adapter for an ObjectClassMonitor. As a precaution so exceptions are not lost exception based callback print stacks to stderr.

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

Constructor Summary
ObjectClassRegistryMonitorAdapter()
           
 
Method Summary
 void lookedUp(org.apache.directory.shared.ldap.schema.ObjectClass objectClass)
          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.ObjectClass objectClass)
          Monitors when a ObjectClass is registered successfully.
 void registerFailed(org.apache.directory.shared.ldap.schema.ObjectClass objectClass, 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

ObjectClassRegistryMonitorAdapter

public ObjectClassRegistryMonitorAdapter()
Method Detail

registered

public void registered(org.apache.directory.shared.ldap.schema.ObjectClass objectClass)
Description copied from interface: ObjectClassRegistryMonitor
Monitors when a ObjectClass is registered successfully.

Specified by:
registered in interface ObjectClassRegistryMonitor
Parameters:
objectClass - the ObjectClass successfully registered

lookedUp

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

Specified by:
lookedUp in interface ObjectClassRegistryMonitor
Parameters:
objectClass - the ObjectClass successfully lookedup

lookupFailed

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

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

registerFailed

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

Specified by:
registerFailed in interface ObjectClassRegistryMonitor
Parameters:
objectClass - the ObjectClass which failed registration
fault - the exception to be thrown for the fault


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