Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I actually use this project? #4

Open
andreicristianpetcu opened this issue Nov 3, 2014 · 0 comments
Open

How do I actually use this project? #4

andreicristianpetcu opened this issue Nov 3, 2014 · 0 comments

Comments

@andreicristianpetcu
Copy link

Hi! I created a method annotation, it gets added and I see it at runtime but it does not add the rest of the annotations. I suspect org.metatype.MetaAnnotatedObject#unroll(java.lang.annotation.Annotation[]) does not get called.

Here is my custom annotation

@Metatype
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface MyApiImplicitParams {
    public static class $ {

        @ApiImplicitParams({@ApiImplicitParam(name="myVersion", dataType = "String", paramType = "header")})
        public void method() {
        }
    }
}

And this is how I use it

    @MyApiImplicitParams
    public void myMethod() {}

Do I need to do anything else in order to make @MyApiImplicitParams add @ApiImplicitParams annotations to myMethod()? My project is a spring project. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant