org.apache.directory.shared.ldap.schema
Class CachingNormalizer

java.lang.Object
  extended byorg.apache.directory.shared.ldap.schema.CachingNormalizer
All Implemented Interfaces:
Normalizer

public class CachingNormalizer
extends java.lang.Object
implements Normalizer

Caches previously normalized values.

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

Field Summary
static int CACHE_MAX
          Cache maximum size default
 
Constructor Summary
CachingNormalizer(Normalizer normalizer)
          Creates a CachingNormalizer that decorates another normalizer using a default cache size.
CachingNormalizer(Normalizer normalizer, int cacheSz)
          Creates a CachingNormalizer that decorates another normalizer using a specified cache size.
 
Method Summary
 java.lang.Object normalize(java.lang.Object value)
          Gets the normalized value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CACHE_MAX

public static final int CACHE_MAX
Cache maximum size default

See Also:
Constant Field Values
Constructor Detail

CachingNormalizer

public CachingNormalizer(Normalizer normalizer)
Creates a CachingNormalizer that decorates another normalizer using a default cache size.

Parameters:
normalizer - the underlying Normalizer being decorated

CachingNormalizer

public CachingNormalizer(Normalizer normalizer,
                         int cacheSz)
Creates a CachingNormalizer that decorates another normalizer using a specified cache size.

Parameters:
normalizer - the underlying Normalizer being decorated
cacheSz - the maximum size of the name cache
Method Detail

normalize

public java.lang.Object normalize(java.lang.Object value)
                           throws javax.naming.NamingException
Description copied from interface: Normalizer
Gets the normalized value.

Specified by:
normalize in interface Normalizer
Parameters:
value - the value to normalize. It must *not* be null !
Returns:
the normalized form for a value
Throws:
javax.naming.NamingException - if an error results during normalization
See Also:
Normalizer.normalize(java.lang.Object)


Copyright © 2003-2006 . All Rights Reserved.