Search in sources :

Example 1 with ResourceEntry

use of io.crnk.core.engine.registry.ResourceEntry in project crnk-framework by crnk-project.

the class DefaultRegistryEntryBuilder method build.

@Override
public RegistryEntry build() {
    ResourceInformation resourceInformation = buildResource();
    ResourceEntry resourceEntry = buildResourceRepository(resourceInformation);
    Map<ResourceField, ResponseRelationshipEntry> relationshipEntries = buildRelationships(resourceInformation);
    RegistryEntry entry = new RegistryEntry(resourceEntry, relationshipEntries);
    entry.initialize(moduleRegistry);
    return entry;
}
Also used : ResourceField(io.crnk.core.engine.information.resource.ResourceField) ResourceInformation(io.crnk.core.engine.information.resource.ResourceInformation) ResponseRelationshipEntry(io.crnk.core.engine.registry.ResponseRelationshipEntry) DirectResponseRelationshipEntry(io.crnk.legacy.internal.DirectResponseRelationshipEntry) ResourceEntry(io.crnk.core.engine.registry.ResourceEntry) AnnotatedResourceEntry(io.crnk.legacy.registry.AnnotatedResourceEntry) DirectResponseResourceEntry(io.crnk.legacy.internal.DirectResponseResourceEntry) RegistryEntry(io.crnk.core.engine.registry.RegistryEntry)

Aggregations

ResourceField (io.crnk.core.engine.information.resource.ResourceField)1 ResourceInformation (io.crnk.core.engine.information.resource.ResourceInformation)1 RegistryEntry (io.crnk.core.engine.registry.RegistryEntry)1 ResourceEntry (io.crnk.core.engine.registry.ResourceEntry)1 ResponseRelationshipEntry (io.crnk.core.engine.registry.ResponseRelationshipEntry)1 DirectResponseRelationshipEntry (io.crnk.legacy.internal.DirectResponseRelationshipEntry)1 DirectResponseResourceEntry (io.crnk.legacy.internal.DirectResponseResourceEntry)1 AnnotatedResourceEntry (io.crnk.legacy.registry.AnnotatedResourceEntry)1