Skip to content

Commit

Permalink
implemented annotations Inject and Component
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneBlood-bit committed Oct 18, 2024
1 parent 955a3d5 commit 5f6d47e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/mate.academy/lib/Component.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package mate.academy.lib;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Component {

}
3 changes: 3 additions & 0 deletions src/main/java/mate.academy/lib/Inject.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package mate.academy.lib;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Inject {

}

0 comments on commit 5f6d47e

Please sign in to comment.