-
-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f26f63d
commit e8dfc59
Showing
5 changed files
with
23 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
structurizr-annotation/src/main/java/com/structurizr/annotation/Component.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.structurizr.annotation; | ||
|
||
import java.lang.annotation.*; | ||
|
||
/** | ||
* A type-level annotation that can be used to indicate the type represents a component. | ||
*/ | ||
@Documented | ||
@Target(ElementType.TYPE) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface Component { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
...ent/src/test/java/com/structurizr/component/matcher/annotationTypeMatcher/Controller.java
This file was deleted.
Oops, something went wrong.
4 changes: 3 additions & 1 deletion
4
...test/java/com/structurizr/component/matcher/annotationTypeMatcher/CustomerController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package com.structurizr.component.matcher.annotationTypeMatcher; | ||
|
||
@Controller | ||
import com.structurizr.annotation.Component; | ||
|
||
@Component | ||
public class CustomerController { | ||
} |