add missing annotation parameters

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1331838 13f79535-47bb-0310-9956-ffa450edef68
master
Olivier Lamy 2012-04-28 21:23:35 +00:00
parent f4945e157a
commit 8f804a31b5
6 changed files with 56 additions and 4 deletions

View File

@ -27,6 +27,7 @@ import java.lang.annotation.Target;
/**
* @author Olivier Lamy
* @since 3.0
*/
@Documented
@Retention( RetentionPolicy.RUNTIME )

View File

@ -18,9 +18,21 @@ package org.apache.maven.tools.plugin.annotations;
* 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
* @since 3.0
*/
@Documented
@Retention( RetentionPolicy.RUNTIME )
@Target( ElementType.TYPE )
@Inherited
public @interface Execute
{
LifecyclePhase phase() default LifecyclePhase.NONE;

View File

@ -28,6 +28,7 @@ import java.lang.annotation.Target;
/**
* @author Olivier Lamy
* @since 3.0
*/
@Documented
@Retention( RetentionPolicy.RUNTIME )

View File

@ -20,6 +20,7 @@ package org.apache.maven.tools.plugin.annotations;
/**
* @author Olivier Lamy
* @since 3.0
*/
public enum LifecyclePhase
{

View File

@ -18,9 +18,21 @@ package org.apache.maven.tools.plugin.annotations;
* 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
* @since 3.0
*/
@Documented
@Retention( RetentionPolicy.RUNTIME )
@Target( { ElementType.FIELD, ElementType.METHOD } )
@Inherited
public @interface Parameter
{
String alias() default "";

View File

@ -1,17 +1,42 @@
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.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
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
@Inherited
@Retention( RUNTIME )
@Target( { TYPE } )
@Retention( RetentionPolicy.RUNTIME )
@Target( { ElementType.TYPE } )
public @interface ThreadSafe
{
boolean value() default true;