codeconsole commented on code in PR #16184:
URL: https://github.com/apache/grails-core/pull/16184#discussion_r3837036886


##########
grails-test-examples/gsp-spring-boot/app/src/main/java/hello/AssetPipelineConfiguration.java:
##########
@@ -0,0 +1,108 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    https://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package hello;
+
+import java.io.InputStream;
+import java.util.Properties;
+
+import asset.pipeline.AssetPipelineConfigHolder;
+import asset.pipeline.AssetPipelineFilter;
+import asset.pipeline.grails.AssetMethodTagLib;
+import asset.pipeline.grails.AssetProcessorService;
+import asset.pipeline.grails.AssetsTagLib;
+
+import grails.core.GrailsApplication;
+import org.springframework.beans.factory.InitializingBean;
+import org.springframework.boot.web.servlet.FilterRegistrationBean;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.core.io.Resource;
+import org.springframework.core.io.ResourceLoader;
+
+/**
+ * Uses a tag library written for Grails - the asset pipeline's {@code 
<asset:...>} - from a Spring
+ * Boot application.
+ *
+ * <p>A Grails application finds such a tag library by scanning the artefacts 
of the plugin that
+ * carries it. This application has no plugins, so it declares the tag library 
as a bean; GSP's tag
+ * library lookup registers every tag library bean of the context, and the 
tags are then usable in a
+ * page exactly as the ones GSP contributes itself.
+ *
+ * <p>The service the tag library reads asset URLs from is auto-configured by 
the asset pipeline, so
+ * only the tag library and the filter that serves the compiled assets are 
declared here.
+ */
+@Configuration(proxyBeanMethods = false)
+public class AssetPipelineConfiguration {

Review Comment:
   @jdaugherty It will be removed after the asset pipeline is released 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to