generated from GoodforGod/java-library-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from GoodforGod/dev
[0.18.0]
- Loading branch information
Showing
65 changed files
with
1,364 additions
and
525 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
48 changes: 48 additions & 0 deletions
48
...int-annotations/src/main/java/io/goodforgod/graalvm/hint/annotation/DynamicProxyHint.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,48 @@ | ||
package io.goodforgod.graalvm.hint.annotation; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* Java dynamic proxies, implemented by java.lang.reflect.Proxy, provide a mechanism which enables | ||
* object level access control by routing all method invocations through | ||
* java.lang.reflect.InvocationHandler | ||
* | ||
* @see <a href="https://www.graalvm.org/reference-manual/native-image/DynamicProxy/">GraalVM | ||
* Info</a> | ||
* @author Anton Kurako (GoodforGod) | ||
* @since 07.04.2022 | ||
*/ | ||
@Target({ ElementType.ANNOTATION_TYPE, ElementType.TYPE }) | ||
@Retention(RetentionPolicy.SOURCE) | ||
public @interface DynamicProxyHint { | ||
|
||
@Target({}) | ||
@Retention(RetentionPolicy.SOURCE) | ||
@interface Configuration { | ||
|
||
/** | ||
* @return The interfaces to provide a hint (preferred because typesafe) | ||
*/ | ||
Class<?>[] interfaces(); | ||
} | ||
|
||
/** | ||
* @see <a href= | ||
* "https://www.graalvm.org/22.0/reference-manual/native-image/DynamicProxy/#manual-configuration">GraalVM</a> | ||
* @return Manual configurations for Dynamic proxy | ||
*/ | ||
Configuration[] value() default {}; | ||
|
||
/** | ||
* @return file configs to include under -H:DynamicProxyConfigurationFiles option | ||
*/ | ||
String[] files() default {}; | ||
|
||
/** | ||
* @return resources configs to include under -H:DynamicProxyConfigurationResources option | ||
*/ | ||
String[] resources() default {}; | ||
} |
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
Oops, something went wrong.