Skip to content

Commit

Permalink
Mark new Spring extensions as @beta (#890)
Browse files Browse the repository at this point in the history
Just in a case there will be needed to change it in a not backward
compatible way.
  • Loading branch information
szpak authored and leonard84 committed Sep 9, 2018
1 parent e757816 commit 8478419
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package org.spockframework.spring;

import org.spockframework.util.Beta;

import java.lang.annotation.*;

/**
Expand All @@ -30,6 +32,7 @@
* {@code prototype} scoped mocks will not work since spring will create different
* instances for each injection target.
*/
@Beta
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface ScanScopedBeans {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package org.spockframework.spring;

import org.spockframework.util.Beta;

import java.lang.annotation.*;

/**
Expand Down Expand Up @@ -56,6 +58,7 @@
* @author Leonard Brünings
* @since 1.2
*/
@Beta
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface SpringBean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package org.spockframework.spring;

import org.spockframework.util.Beta;

import java.lang.annotation.*;

/**
Expand Down Expand Up @@ -46,6 +48,7 @@
* @author Leonard Brünings
* @since 1.2
*/
@Beta
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface SpringSpy {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
package org.spockframework.spring;

import org.spockframework.util.Beta;

import java.lang.annotation.*;

/**
Expand All @@ -35,6 +37,7 @@
* @author Leonard Brünings
* @since 1.2
*/
@Beta
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface StubBeans {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
package org.spockframework.spring;

import org.spockframework.runtime.extension.ExtensionAnnotation;
import org.spockframework.util.Beta;

import java.lang.annotation.*;

@Beta
@Target({ ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@ExtensionAnnotation(UnwrapAopProxyExtension.class)
Expand Down

0 comments on commit 8478419

Please sign in to comment.