IntrospectorCache (Velocity 1.7 API)
Keywords: org.apache.velocity.util.introspection.IntrospectorCache interface

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.velocity.util.introspection
Interface IntrospectorCache

All Known Implementing Classes:
  IntrospectorCacheImpl

public interface IntrospectorCache

The introspector cache API definition.

Since:
  1.5
Version:
  $Id: IntrospectorCache.java 685685 2008-08-13 21:43:27Z nbubna $
Author:
  Henning P. Schmiedehausen

Method Summary
`void` | `clear()` Clears the internal cache.
`ClassMap` | `get(Class c)` Lookup a given Class object in the cache.
`ClassMap` | `put(Class c)` Creates a class map for specific class and registers it in the cache.

Method Detail

### clear

    public void clear()

  Clears the internal cache.

### get

    public ClassMap get(Class c)

  Lookup a given Class object in the cache. If it does not exist, check whether this is due to a class change and purge the caches eventually.

  Parameters:
    `c` - The class to look up.
  Returns:
    A ClassMap object or null if it does not exist in the cache.

### put

    public ClassMap put(Class c)

  Creates a class map for specific class and registers it in the cache. Also adds the qualified name to the name->class map for later Classloader change detection.

  Parameters:
    `c` - The class for which the class map gets generated.
  Returns:
    A ClassMap object.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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