public interface TypeDefinitionCache extends Serializable
Implementations of this interface have to be tread-safe.
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.
|
void initialize(BindingSession session)
void put(String repositoryId, TypeDefinition typeDefinition)
repositoryId
- the repository idtypeDefinition
- the type definition objectTypeDefinition get(String repositoryId, String typeId)
repositoryId
- the repository idtypeId
- the type idnull
if the object is
not in the cachevoid remove(String repositoryId, String typeId)
repositoryId
- the repository idtypeId
- the type idvoid remove(String repositoryId)
repositoryId
- the repository idvoid removeAll()
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.