/*
- * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
+ * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
+ *
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*
* @param <T> Cached schema source type.
*/
-public abstract class AbstractSchemaSourceCache<T extends SchemaSourceRepresentation> implements SchemaSourceListener, SchemaSourceProvider<T> {
+public abstract class AbstractSchemaSourceCache<T extends SchemaSourceRepresentation>
+ implements SchemaSourceListener, SchemaSourceProvider<T> {
private final SchemaSourceRegistry consumer;
private final Class<T> representation;
private final Costs cost;
- protected AbstractSchemaSourceCache(final SchemaSourceRegistry consumer, final Class<T> representation, final Costs cost) {
+ protected AbstractSchemaSourceCache(final SchemaSourceRegistry consumer, final Class<T> representation,
+ final Costs cost) {
this.consumer = Preconditions.checkNotNull(consumer);
this.representation = Preconditions.checkNotNull(representation);
this.cost = Preconditions.checkNotNull(cost);
*
* @param sourceIdentifier Source identifier
* @return schema source registration, which the subclass needs to
- * {@link SchemaSourceRegistration#close() once it expunges the source
+ * {@link SchemaSourceRegistration#close()} once it expunges the source
* from the cache.
*/
protected final SchemaSourceRegistration<T> register(final SourceIdentifier sourceIdentifier) {
- final PotentialSchemaSource<T> src = PotentialSchemaSource.create(sourceIdentifier, representation, cost.getValue());
+ final PotentialSchemaSource<T> src = PotentialSchemaSource.create(sourceIdentifier, representation,
+ cost.getValue());
return consumer.registerSchemaSource(this, src);
}