Package org.schemarepo

Interface Summary
Repository A Repository is a collection of Subjects.
SchemaEntryCache A SchemaEntryCache is a bi-directional cache from a schema string to a schema id string.
SchemaEntryCache.Factory Creates instances of SchemaEntryCache

SubjectCache A SubjectCache is a cache from a string subject name to a Subject
Validator A Validator may be bound to each Subject in a Repository to ensure that schemas added to the Subject are mutually compatible.
 

Class Summary
AbstractBackendRepository Parent class of the actual backend (as opposed to decorating) repositories.
BaseRepository Base class for all repository implementations.
CacheRepository CacheRepository is a Repository implementation that wraps another Repository and acts as a write-through cache of Subjects and schema to id mappings, shielding the inner Repository from repetitive lookups.
DelegatingRepository Base class for all delegating repositories.
DelegatingSubject A DelegatingSubject is a Subject that delegates work to an underlying Subject.
InMemoryCache A InMemoryCache is an implementation of RepositoryCache that uses InMemorySubjectCache and InMemorySchemaEntryCache
InMemoryRepository A Repository that stores its data in memory and is not persistent.
InMemorySchemaEntryCache An unbounded in memory SchemaEntryCache that never evicts any values;
InMemorySchemaEntryCache.Factory  
InMemorySubjectCache An unbounded in memory SubjectCache that never evicts any values.
LocalFileSystemRepository A Repository that persists content to file.
MessageStrings Static Strings used to communicate a message to the end-user.
ReadOnlyRepository ReadOnlyRepository is a Repository implementation that wraps another Repository and rejects all operations that can modify the state of the Repository.

ReadOnlyRepository.register(String, SubjectConfig), Subject.register(String) and Subject.registerIfLatest(String, SchemaEntry) throw IllegalStateException if called.
RepositoryCache A RepositoryCache composes a SubjectCache with a SchemaEntryCache.Factory, using Subject.cacheWith(Subject, SchemaEntryCache) to wrap Subject instances prior to insertion into the SubjectCache.
RepositoryUtil RepositoryUtil contains static helper methods for the org.schemarepo package.
SchemaEntry SchemaEntry is composed of a schema and its corresponding id.
Subject A Subject is a collection of mutually compatible Schemas.
SubjectConfig A SubjectConfig is effectively a Map , with reserved keys and default values for certain keys.
SubjectConfig.Builder  
ValidatorFactory A factory for mapping Validator names to instantiated instances.
ValidatorFactory.Builder  
 

Exception Summary
SchemaValidationException  
 



Copyright © 2015. All rights reserved.