use of org.commonjava.indy.pkg.maven.content.marshaller.MetadataMarshaller in project indy by Commonjava.
the class KojiCacheProducer method versionMetadataCache.
@KojiMavenVersionMetadataCache
@Produces
@ApplicationScoped
public BasicCacheHandle<ProjectRef, Metadata> versionMetadataCache() {
if (remoteConfiguration.isEnabled()) {
List<BaseMarshaller> marshallers = new ArrayList<>();
marshallers.add(new MetadataMarshaller());
marshallers.add(new ProjectRefMarshaller());
cacheProducer.registerProtoAndMarshallers("koji_metadata.proto", marshallers);
}
return cacheProducer.getBasicCache("koji-maven-version-metadata");
}
use of org.commonjava.indy.pkg.maven.content.marshaller.MetadataMarshaller in project indy by Commonjava.
the class MetadataCacheProducer method mavenMetadataCacheCfg.
@MavenMetadataCache
@Produces
@ApplicationScoped
public BasicCacheHandle<MetadataKey, MetadataInfo> mavenMetadataCacheCfg() {
if (remoteConfiguration.isEnabled()) {
List<BaseMarshaller> infoMarshallers = new ArrayList<>();
infoMarshallers.add(new MetadataInfoMarshaller());
infoMarshallers.add(new MetadataMarshaller());
infoMarshallers.add(new VersioningMarshaller());
infoMarshallers.add(new SnapshotMarshaller());
infoMarshallers.add(new SnapshotVersionMarshaller());
infoMarshallers.add(new VersioningMarshaller());
cacheProducer.registerProtoAndMarshallers("metadata_info.proto", infoMarshallers);
List<BaseMarshaller> keyMarshallers = new ArrayList<>();
keyMarshallers.add(new MetadataKeyMarshaller());
keyMarshallers.add(new StoreKeyMarshaller());
keyMarshallers.add(new StoreTypeMarshaller());
cacheProducer.registerProtoAndMarshallers("metadata_key.proto", keyMarshallers);
}
return cacheProducer.getBasicCache(METADATA_CACHE);
}
Aggregations