|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.schema.CachingNormalizer
public class CachingNormalizer
Caches previously normalized values.
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 | |
---|---|
Object |
normalize(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 |
---|
public static final int CACHE_MAX
Constructor Detail |
---|
public CachingNormalizer(Normalizer normalizer)
normalizer
- the underlying Normalizer being decoratedpublic CachingNormalizer(Normalizer normalizer, int cacheSz)
normalizer
- the underlying Normalizer being decoratedcacheSz
- the maximum size of the name cacheMethod Detail |
---|
public Object normalize(Object value) throws NamingException
Normalizer
normalize
in interface Normalizer
value
- the value to normalize. It must *not* be null !
NamingException
- if an error results during normalizationNormalizer.normalize(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |