Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New @FragementWithArgs Annotation --> deprecate @FragmentArgsInherited;
fix #32
- Loading branch information
Showing
7 changed files
with
134 additions
and
52 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
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
28 changes: 28 additions & 0 deletions
28
annotation/src/main/java/com/hannesdorfmann/fragmentargs/annotation/FragmentWithArgs.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,28 @@ | ||
package com.hannesdorfmann.fragmentargs.annotation; | ||
|
||
import java.lang.annotation.Documented; | ||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* Use this annotation to mark a Fragments that contains {@link Arg} annotation. This annotation is | ||
* required to run Annotation processing. | ||
* | ||
* @author Hannes Dorfmann | ||
* @since 3.0 | ||
*/ | ||
@Target(ElementType.TYPE) | ||
@Retention(RetentionPolicy.CLASS) | ||
@Documented | ||
public @interface FragmentWithArgs { | ||
|
||
/** | ||
* Is inheritance hierarchy scanning enabled? default value = true. Specifies if all @{@link Arg} | ||
* annotations of all super classes (checks the complete inheritance hierarchy) should be included | ||
* in the fragment. The default value is true and <b></b>you don't have to specify that for each | ||
* fragment</b> | ||
*/ | ||
boolean inherited() default true; | ||
} |
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
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
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
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