Skip to content

Commit

Permalink
DATAGEODE-19 - Meta-annotate all uses of GemFire/Geode-based property…
Browse files Browse the repository at this point in the history
… configuration in the Annotation config model.
  • Loading branch information
jxblum committed Jul 19, 2017
1 parent 0ee6c6e commit f85f15f
Show file tree
Hide file tree
Showing 14 changed files with 58 additions and 0 deletions.
Expand Up @@ -50,6 +50,7 @@
@Inherited
@Documented
@Import(AuthConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings({ "deprecation", "unused" })
public @interface EnableAuth {

Expand Down
Expand Up @@ -41,6 +41,7 @@
@Inherited
@Documented
@Import(GemFirePropertiesConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableGemFireProperties {

Expand Down
Expand Up @@ -52,6 +52,7 @@
@Inherited
@Documented
@Import(HttpServiceConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableHttpService {

Expand Down
Expand Up @@ -48,6 +48,7 @@
@Inherited
@Documented
@Import(LocatorConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableLocator {

Expand Down
Expand Up @@ -42,6 +42,7 @@
@Inherited
@Documented
@Import(LoggingConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableLogging {

Expand Down
Expand Up @@ -50,6 +50,7 @@
@Inherited
@Documented
@Import(ManagerConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableManager {

Expand Down
Expand Up @@ -42,6 +42,7 @@
@Inherited
@Documented
@Import(McastConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableMcast {

Expand Down
Expand Up @@ -50,6 +50,7 @@
@Inherited
@Documented
@Import(MemcachedServerConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableMemcachedServer {

Expand Down
Expand Up @@ -44,6 +44,7 @@
@Inherited
@Documented
@Import(OffHeapConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableOffHeap {

Expand Down
Expand Up @@ -50,6 +50,7 @@
@Documented
@Inherited
@Import(RedisServerConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableRedisServer {

Expand Down
Expand Up @@ -48,6 +48,7 @@
@Inherited
@Documented
@Import({ ApacheShiroSecurityConfiguration.class, GeodeIntegratedSecurityConfiguration.class })
@UsesGemFireProperties
@SuppressWarnings({ "unused" })
public @interface EnableSecurity {

Expand Down
Expand Up @@ -42,6 +42,7 @@
@Inherited
@Documented
@Import(SslConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableSsl {

Expand Down
Expand Up @@ -44,6 +44,7 @@
@Inherited
@Documented
@Import(StatisticsConfiguration.class)
@UsesGemFireProperties
@SuppressWarnings("unused")
public @interface EnableStatistics {

Expand Down
@@ -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 {

}

0 comments on commit f85f15f

Please sign in to comment.