DATAGEODE-19 - Meta-annotate all uses of GemFire/Geode-based property configuration in the Annotation config model.

This commit is contained in:
John Blum
2017-07-18 16:34:41 -07:00
parent 0ee6c6ed49
commit f85f15fee9
14 changed files with 58 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ import org.springframework.context.annotation.Import;
@Inherited
@Documented
@Import(AuthConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings({ "deprecation", "unused" })
public @interface EnableAuth {

View File

@@ -41,6 +41,7 @@ import org.springframework.context.annotation.Import;
@Inherited
@Documented
@Import(GemFirePropertiesConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableGemFireProperties {

View File

@@ -52,6 +52,7 @@ import org.springframework.context.annotation.Import;
@Inherited
@Documented
@Import(HttpServiceConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableHttpService {

View File

@@ -48,6 +48,7 @@ import org.springframework.context.annotation.Import;
@Inherited
@Documented
@Import(LocatorConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableLocator {

View File

@@ -42,6 +42,7 @@ import org.springframework.context.annotation.Import;
@Inherited
@Documented
@Import(LoggingConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableLogging {

View File

@@ -50,6 +50,7 @@ import org.springframework.context.annotation.Import;
@Inherited
@Documented
@Import(ManagerConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableManager {

View File

@@ -42,6 +42,7 @@ import org.springframework.context.annotation.Import;
@Inherited
@Documented
@Import(McastConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableMcast {

View File

@@ -50,6 +50,7 @@ import org.springframework.context.annotation.Import;
@Inherited
@Documented
@Import(MemcachedServerConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableMemcachedServer {

View File

@@ -44,6 +44,7 @@ import org.springframework.context.annotation.Import;
@Inherited
@Documented
@Import(OffHeapConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableOffHeap {

View File

@@ -50,6 +50,7 @@ import org.springframework.context.annotation.Import;
@Documented
@Inherited
@Import(RedisServerConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableRedisServer {

View File

@@ -48,6 +48,7 @@ import org.springframework.context.annotation.Import;
@Inherited
@Documented
@Import({ ApacheShiroSecurityConfiguration.class, GeodeIntegratedSecurityConfiguration.class })
@UsesGemFireProperties
@SuppressWarnings({ "unused" })
public @interface EnableSecurity {

View File

@@ -42,6 +42,7 @@ import org.springframework.context.annotation.Import;
@Inherited
@Documented
@Import(SslConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableSsl {

View File

@@ -44,6 +44,7 @@ import org.springframework.context.annotation.Import;
@Inherited
@Documented
@Import(StatisticsConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableStatistics {

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2017 the original author or authors.
*
* Licensed 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
*
* http://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 org.springframework.data.gemfire.config.annotation;
import java.lang.annotation.Annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* {@link UsesGemFireProperties} is a meta-annotation used to mark other SDG {@link Annotation Annotations}
* that uses GemFire properties to configure the Spring-based GemFire cache instance.
*
* @author John Blum
* @see java.lang.annotation.Annotation
* @see java.lang.annotation.Documented
* @see java.lang.annotation.Inherited
* @see java.lang.annotation.Retention
* @see java.lang.annotation.Target
* @since 2.0.0
*/
@Target(ElementType.ANNOTATION_TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface UsesGemFireProperties {
}