001/* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, 013 * software distributed under the License is distributed on an 014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 015 * KIND, either express or implied. See the License for the 016 * specific language governing permissions and limitations 017 * under the License. 018 */ 019package org.apache.isis.viewer.restfulobjects.rendering; 020 021import org.springframework.context.annotation.Configuration; 022import org.springframework.context.annotation.Import; 023 024import org.apache.isis.core.runtime.IsisModuleCoreRuntime; 025import org.apache.isis.viewer.restfulobjects.applib.IsisModuleViewerRestfulObjectsApplib; 026import org.apache.isis.viewer.restfulobjects.rendering.domainobjects.JsonValueEncoder; 027import org.apache.isis.viewer.restfulobjects.rendering.service.RepresentationServiceContentNegotiator; 028import org.apache.isis.viewer.restfulobjects.rendering.service.acceptheader.AcceptHeaderServiceForRest; 029import org.apache.isis.viewer.restfulobjects.rendering.service.conneg.ContentNegotiationServiceForRestfulObjectsV1_0; 030import org.apache.isis.viewer.restfulobjects.rendering.service.conneg.ContentNegotiationServiceOrgApacheIsisV1; 031import org.apache.isis.viewer.restfulobjects.rendering.service.conneg.ContentNegotiationServiceXRoDomainType; 032import org.apache.isis.viewer.restfulobjects.rendering.service.swagger.SwaggerServiceDefault; 033import org.apache.isis.viewer.restfulobjects.rendering.service.swagger.SwaggerServiceMenu; 034import org.apache.isis.viewer.restfulobjects.rendering.service.swagger.internal.ClassExcluderDefault; 035import org.apache.isis.viewer.restfulobjects.rendering.service.swagger.internal.SwaggerSpecGenerator; 036import org.apache.isis.viewer.restfulobjects.rendering.service.swagger.internal.TaggerDefault; 037import org.apache.isis.viewer.restfulobjects.rendering.service.swagger.internal.ValuePropertyFactoryDefault; 038 039@Configuration 040@Import({ 041 // modules 042 IsisModuleViewerRestfulObjectsApplib.class, 043 IsisModuleCoreRuntime.class, 044 045 // @Component's 046 ClassExcluderDefault.class, 047 SwaggerSpecGenerator.class, 048 TaggerDefault.class, 049 ValuePropertyFactoryDefault.class, 050 051 052 // @Service's 053 AcceptHeaderServiceForRest.class, 054 ContentNegotiationServiceForRestfulObjectsV1_0.class, 055 ContentNegotiationServiceOrgApacheIsisV1.class, 056 ContentNegotiationServiceXRoDomainType.class, 057 JsonValueEncoder.class, 058 RepresentationServiceContentNegotiator.class, 059 SwaggerServiceDefault.class, 060 SwaggerServiceMenu.class, 061 062}) 063public class IsisModuleRestfulObjectsRendering { 064}