Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
Add deprecation information to Plexus components
Browse files Browse the repository at this point in the history
  • Loading branch information
slachiewicz committed May 3, 2023
1 parent 1e0385f commit 2a9ba6a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@
* Marks a class as a Plexus component.
*
* @since 1.0-alpha-33
* @deprecated see <a href="https://github.com/eclipse/sisu.plexus/wiki/Plexus-to-JSR330">Plexus-to-JSR330</a> instead.
*/
@Documented
@Retention(RUNTIME)
@Target(TYPE)
@Inherited
@Deprecated
public @interface Component
{
Class<?> role();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@
/**
* Marks a field as a configuration element with a default value.
*
* @deprecated see <a href="https://github.com/eclipse/sisu.plexus/wiki/Plexus-to-JSR330">Plexus-to-JSR330</a> instead.
* @since 1.0-alpha-33
*/
@Documented
@Retention(RUNTIME)
@Target(FIELD)
@Inherited
@Deprecated
public @interface Configuration
{
String name() default "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@
/**
* Configures a requirement.
*
* @deprecated see <a href="https://github.com/eclipse/sisu.plexus/wiki/Plexus-to-JSR330">Plexus-to-JSR330</a> instead.
* @since 1.0-alpha-33
*/
@Documented
@Retention(RUNTIME)
@Target({ FIELD, METHOD })
@Inherited
@Deprecated
public @interface Requirement
{
Class<?> role() default Object.class;
Expand Down

0 comments on commit 2a9ba6a

Please sign in to comment.