add missing annotation parameters
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1331838 13f79535-47bb-0310-9956-ffa450edef68master
parent
f4945e157a
commit
8f804a31b5
|
|
@ -27,6 +27,7 @@ import java.lang.annotation.Target;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Olivier Lamy
|
* @author Olivier Lamy
|
||||||
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
@Documented
|
@Documented
|
||||||
@Retention( RetentionPolicy.RUNTIME )
|
@Retention( RetentionPolicy.RUNTIME )
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,21 @@ package org.apache.maven.tools.plugin.annotations;
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Olivier Lamy
|
* @author Olivier Lamy
|
||||||
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
|
@Documented
|
||||||
|
@Retention( RetentionPolicy.RUNTIME )
|
||||||
|
@Target( ElementType.TYPE )
|
||||||
|
@Inherited
|
||||||
public @interface Execute
|
public @interface Execute
|
||||||
{
|
{
|
||||||
LifecyclePhase phase() default LifecyclePhase.NONE;
|
LifecyclePhase phase() default LifecyclePhase.NONE;
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ import java.lang.annotation.Target;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Olivier Lamy
|
* @author Olivier Lamy
|
||||||
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
@Documented
|
@Documented
|
||||||
@Retention( RetentionPolicy.RUNTIME )
|
@Retention( RetentionPolicy.RUNTIME )
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ package org.apache.maven.tools.plugin.annotations;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Olivier Lamy
|
* @author Olivier Lamy
|
||||||
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
public enum LifecyclePhase
|
public enum LifecyclePhase
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,21 @@ package org.apache.maven.tools.plugin.annotations;
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Olivier Lamy
|
* @author Olivier Lamy
|
||||||
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
|
@Documented
|
||||||
|
@Retention( RetentionPolicy.RUNTIME )
|
||||||
|
@Target( { ElementType.FIELD, ElementType.METHOD } )
|
||||||
|
@Inherited
|
||||||
public @interface Parameter
|
public @interface Parameter
|
||||||
{
|
{
|
||||||
String alias() default "";
|
String alias() default "";
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,42 @@
|
||||||
package org.apache.maven.tools.plugin.annotations;
|
package org.apache.maven.tools.plugin.annotations;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
* or more contributor license agreements. See the NOTICE file
|
||||||
|
* distributed with this work for additional information
|
||||||
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
|
* to you 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
import java.lang.annotation.Documented;
|
import java.lang.annotation.Documented;
|
||||||
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Inherited;
|
import java.lang.annotation.Inherited;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
|
import java.lang.annotation.RetentionPolicy;
|
||||||
import java.lang.annotation.Target;
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
import static java.lang.annotation.ElementType.TYPE;
|
|
||||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
/**
|
||||||
|
* @author Olivier Lamy
|
||||||
|
* @since 3.0
|
||||||
|
*/
|
||||||
|
|
||||||
@Documented
|
@Documented
|
||||||
@Inherited
|
@Inherited
|
||||||
@Retention( RUNTIME )
|
@Retention( RetentionPolicy.RUNTIME )
|
||||||
@Target( { TYPE } )
|
@Target( { ElementType.TYPE } )
|
||||||
public @interface ThreadSafe
|
public @interface ThreadSafe
|
||||||
{
|
{
|
||||||
boolean value() default true;
|
boolean value() default true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue