1 /*
2 * Copyright 2006-2011 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5 * the License. You may obtain a copy of the License at
6 *
7 * https://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
11 * specific language governing permissions and limitations under the License.
12 */
13
14
15 package org.springframework.security.oauth2.provider.endpoint;
16
17 import java.lang.annotation.ElementType;
18 import java.lang.annotation.Retention;
19 import java.lang.annotation.RetentionPolicy;
20 import java.lang.annotation.Target;
21
22 import org.springframework.stereotype.Component;
23
24 /**
25 * <p>Synonym for @Controller but only used for endpoints provided by the framework (so it never clashes with user's
26 * own endpoints defined with @Controller). Use with @RequestMapping and all the other @Controller features
27 * (and match with a {@link FrameworkEndpointHandlerMapping} in the servlet context).</p>
28 *
29 * <p>
30 * Users of the Spring Security OAuth2 XSD namespace need not use this feature explicitly as the relevant handlers will
31 * be registered by the parsers.
32 * </p>
33 *
34 * @author Dave Syer
35 *
36 */
37 @Component
38 @Retention(RetentionPolicy.RUNTIME)
39 @Target(ElementType.TYPE)
40 public @interface FrameworkEndpoint {
41
42 }