    001// Licensed to the Apache Software Foundation (ASF) under one
    002// or more contributor license agreements.  See the NOTICE file
    003// distributed with this work for additional information
    004// regarding copyright ownership.  The ASF licenses this file
    005// to you under the Apache License, Version 2.0 (the
    006// "License"); you may not use this file except in compliance
    007// with the License.  You may obtain a copy of the License at
    008//
    009// http://www.apache.org/licenses/LICENSE-2.0
    010//
    011// Unless required by applicable law or agreed to in writing,
    012// software distributed under the License is distributed on an
    013// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    014// KIND, either express or implied.  See the License for the
    015// specific language governing permissions and limitations
    016// under the License.
    017package org.apache.tapestry5.services.rest;
    018
    019import java.util.Set;
    020
    021import org.apache.tapestry5.ioc.annotations.UsesConfiguration;
    022
    023/**
    024 * Service which provides a list of mapped entities. They're usually classes which are mapped
    025 * to other formats like JSON and XML and used to represent data being received or sent
    026 * to or from external processes, for example REST endpoints.
    027 * Contributions are done by package and all classes inside the contributed ones are considered
    028 * mapped entities.
    029 */
    030@UsesConfiguration(String.class)
    031public interface MappedEntityManager {
    032
    033    /**
    034     * Returns the set of entity classes.
    035     * @return a {@link Set} of {@link Class} instances.
    036     */
    037    Set<Class<?>> getEntities();
    038
    039}