public class TypeDefinitionCache extends Object implements Serializable
Constructor and Description |
---|
TypeDefinitionCache(BindingSession session)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TypeDefinition |
get(String repositoryId,
String typeId)
Retrieves a type definition object from 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.
|
String |
toString() |
public TypeDefinitionCache(BindingSession session)
session
- the session objectpublic void put(String repositoryId, TypeDefinition typeDefinition)
repositoryId
- the repository idtypeDefinition
- the type definition objectpublic TypeDefinition get(String repositoryId, String typeId)
repositoryId
- the repository idtypeId
- the type idnull
if the object is
not in the cachepublic void remove(String repositoryId, String typeId)
repositoryId
- the repository idtypeId
- the type idpublic void remove(String repositoryId)
repositoryId
- the repository idCopyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.