public class TypeDefinitionCacheImpl extends Object implements TypeDefinitionCache
| Constructor and Description |
|---|
TypeDefinitionCacheImpl()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TypeDefinition |
get(String repositoryId,
String typeId)
Retrieves a type definition object from the cache.
|
void |
initialize(BindingSession session)
Initializes the cache.
|
void |
put(String repositoryId,
TypeDefinition typeDefinition)
Adds a type definition object to the cache.
|
void |
remove(String repositoryId)
Removes all type definition objects of a repository from the cache.
|
void |
remove(String repositoryId,
String typeId)
Removes a type definition object from the cache.
|
void |
removeAll()
Removes all cache entries.
|
String |
toString() |
public void initialize(BindingSession session)
TypeDefinitionCacheinitialize in interface TypeDefinitionCachepublic void put(String repositoryId, TypeDefinition typeDefinition)
TypeDefinitionCacheput in interface TypeDefinitionCacherepositoryId - the repository idtypeDefinition - the type definition objectpublic TypeDefinition get(String repositoryId, String typeId)
TypeDefinitionCacheget in interface TypeDefinitionCacherepositoryId - the repository idtypeId - the type idnull if the object is
not in the cachepublic void remove(String repositoryId, String typeId)
TypeDefinitionCacheremove in interface TypeDefinitionCacherepositoryId - the repository idtypeId - the type idpublic void remove(String repositoryId)
TypeDefinitionCacheremove in interface TypeDefinitionCacherepositoryId - the repository idpublic void removeAll()
TypeDefinitionCacheremoveAll in interface TypeDefinitionCacheCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.