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

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

public class AttributeTypeRegistryMonitorAdapter
extends java.lang.Object
implements AttributeTypeRegistryMonitor

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

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

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

AttributeTypeRegistryMonitorAdapter

public AttributeTypeRegistryMonitorAdapter()
Method Detail

registered

public void registered(org.apache.directory.shared.ldap.schema.AttributeType attributeType)
Description copied from interface: AttributeTypeRegistryMonitor
Monitors when a AttributeType is registered successfully.

Specified by:
registered in interface AttributeTypeRegistryMonitor
Parameters:
attributeType - the AttributeType successfully registered

lookedUp

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

Specified by:
lookedUp in interface AttributeTypeRegistryMonitor
Parameters:
attributeType - the AttributeType successfully lookedup

lookupFailed

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

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

registerFailed

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

Specified by:
registerFailed in interface AttributeTypeRegistryMonitor
Parameters:
attributeType - the AttributeType which failed registration
fault - the exception to be thrown for the fault


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