GitHub PullRequestReviewCommentEvent at 2014-01-03 17:56:16
Repository: spring-integration
Actor: artembilan
Payload: {"comment":{"url":"https://api.github.com/repos/spring-projects/spring-integration/pulls/comments/8640077","id":8640077,"diff_hunk":"@@ -0,0 +1,40 @@\n+/*\n+ * Copyright 2014 the original author or authors.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *      http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.springframework.integration.config.annotation;\n+\n+import java.lang.annotation.Documented;\n+import java.lang.annotation.ElementType;\n+import java.lang.annotation.Retention;\n+import java.lang.annotation.RetentionPolicy;\n+import java.lang.annotation.Target;\n+\n+import org.springframework.context.annotation.Import;\n+import org.springframework.integration.config.IntegrationRegistrar;\n+\n+/**\n+ * @author Artem Bilan\n+ * @since 4.0\n+ */\n+@Target(ElementType.TYPE)\n+@Retention(RetentionPolicy.RUNTIME)\n+@Documented\n+@Import(IntegrationRegistrar.class)\n+public @interface EnableIntegration {\n+\n+\tString defaultPublishedChannel() default \"\";","path":"spring-integration-core/src/main/java/org/springframework/integration/config/annotation/EnableIntegration.java","position":38,"original_position":38,"commit_id":"e3d45e6c8b4dbefba27e3eb11a70de21dd1ac90a","original_commit_id":"e3d45e6c8b4dbefba27e3eb11a70de21dd1ac90a","user":{"login":"artembilan","id":1071590,"avatar_url":"https://gravatar.com/avatar/c3d7e967be8fcc46780cd3dfcdc6cba9?d=https%3A%2F%2Fidenticons.github.com%2F84c806955e19da3763e8e8f0a912f91d.png&r=x","gravatar_id":"c3d7e967be8fcc46780cd3dfcdc6cba9","url":"https://api.github.com/users/artembilan","html_url":"https://github.com/artembilan","followers_url":"https://api.github.com/users/artembilan/followers","following_url":"https://api.github.com/users/artembilan/following{/other_user}","gists_url":"https://api.github.com/users/artembilan/gists{/gist_id}","starred_url":"https://api.github.com/users/artembilan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artembilan/subscriptions","organizations_url":"https://api.github.com/users/artembilan/orgs","repos_url":"https://api.github.com/users/artembilan/repos","events_url":"https://api.github.com/users/artembilan/events{/privacy}","received_events_url":"https://api.github.com/users/artembilan/received_events","type":"User","site_admin":false},"body":"As it is still hot in my head, I want to comment it here.\r\nActually we can do process of those annotations (and similar (e.g. `@MessageHistory`)) from that new `IntegrationFlowBeanFactoryPostProcessor` and provide an implementation of pattern Vistor using `SpringFactoriesLoader`. It is needed for case of `IntegrationRequestMappingHandlerMapping` or `ChannelSecurityInterceptor`","created_at":"2014-01-03T17:56:16Z","updated_at":"2014-01-03T17:56:16Z","html_url":"https://github.com/spring-projects/spring-integration/pull/1017#discussion_r8640077","pull_request_url":"https://api.github.com/repos/spring-projects/spring-integration/pulls/1017","_links":{"self":{"href":"https://api.github.com/repos/spring-projects/spring-integration/pulls/comments/8640077"},"html":{"href":"https://github.com/spring-projects/spring-integration/pull/1017#discussion_r8640077"},"pull_request":{"href":"https://api.github.com/repos/spring-projects/spring-integration/pulls/1017"}}}}