DATAGEODE-19 - Meta-annotate all uses of GemFire/Geode-based property configuration in the Annotation config model.
This commit is contained in:
@@ -50,6 +50,7 @@ import org.springframework.context.annotation.Import;
|
||||
@Inherited
|
||||
@Documented
|
||||
@Import(AuthConfiguration.class)
|
||||
@UsesGemFireProperties
|
||||
@SuppressWarnings({ "deprecation", "unused" })
|
||||
public @interface EnableAuth {
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ import org.springframework.context.annotation.Import;
|
||||
@Inherited
|
||||
@Documented
|
||||
@Import(GemFirePropertiesConfiguration.class)
|
||||
@UsesGemFireProperties
|
||||
@SuppressWarnings("unused")
|
||||
public @interface EnableGemFireProperties {
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@ import org.springframework.context.annotation.Import;
|
||||
@Inherited
|
||||
@Documented
|
||||
@Import(HttpServiceConfiguration.class)
|
||||
@UsesGemFireProperties
|
||||
@SuppressWarnings("unused")
|
||||
public @interface EnableHttpService {
|
||||
|
||||
|
||||
@@ -48,6 +48,7 @@ import org.springframework.context.annotation.Import;
|
||||
@Inherited
|
||||
@Documented
|
||||
@Import(LocatorConfiguration.class)
|
||||
@UsesGemFireProperties
|
||||
@SuppressWarnings("unused")
|
||||
public @interface EnableLocator {
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@ import org.springframework.context.annotation.Import;
|
||||
@Inherited
|
||||
@Documented
|
||||
@Import(LoggingConfiguration.class)
|
||||
@UsesGemFireProperties
|
||||
@SuppressWarnings("unused")
|
||||
public @interface EnableLogging {
|
||||
|
||||
|
||||
@@ -50,6 +50,7 @@ import org.springframework.context.annotation.Import;
|
||||
@Inherited
|
||||
@Documented
|
||||
@Import(ManagerConfiguration.class)
|
||||
@UsesGemFireProperties
|
||||
@SuppressWarnings("unused")
|
||||
public @interface EnableManager {
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@ import org.springframework.context.annotation.Import;
|
||||
@Inherited
|
||||
@Documented
|
||||
@Import(McastConfiguration.class)
|
||||
@UsesGemFireProperties
|
||||
@SuppressWarnings("unused")
|
||||
public @interface EnableMcast {
|
||||
|
||||
|
||||
@@ -50,6 +50,7 @@ import org.springframework.context.annotation.Import;
|
||||
@Inherited
|
||||
@Documented
|
||||
@Import(MemcachedServerConfiguration.class)
|
||||
@UsesGemFireProperties
|
||||
@SuppressWarnings("unused")
|
||||
public @interface EnableMemcachedServer {
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ import org.springframework.context.annotation.Import;
|
||||
@Inherited
|
||||
@Documented
|
||||
@Import(OffHeapConfiguration.class)
|
||||
@UsesGemFireProperties
|
||||
@SuppressWarnings("unused")
|
||||
public @interface EnableOffHeap {
|
||||
|
||||
|
||||
@@ -50,6 +50,7 @@ import org.springframework.context.annotation.Import;
|
||||
@Documented
|
||||
@Inherited
|
||||
@Import(RedisServerConfiguration.class)
|
||||
@UsesGemFireProperties
|
||||
@SuppressWarnings("unused")
|
||||
public @interface EnableRedisServer {
|
||||
|
||||
|
||||
@@ -48,6 +48,7 @@ import org.springframework.context.annotation.Import;
|
||||
@Inherited
|
||||
@Documented
|
||||
@Import({ ApacheShiroSecurityConfiguration.class, GeodeIntegratedSecurityConfiguration.class })
|
||||
@UsesGemFireProperties
|
||||
@SuppressWarnings({ "unused" })
|
||||
public @interface EnableSecurity {
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@ import org.springframework.context.annotation.Import;
|
||||
@Inherited
|
||||
@Documented
|
||||
@Import(SslConfiguration.class)
|
||||
@UsesGemFireProperties
|
||||
@SuppressWarnings("unused")
|
||||
public @interface EnableSsl {
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ import org.springframework.context.annotation.Import;
|
||||
@Inherited
|
||||
@Documented
|
||||
@Import(StatisticsConfiguration.class)
|
||||
@UsesGemFireProperties
|
||||
@SuppressWarnings("unused")
|
||||
public @interface EnableStatistics {
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user