Represents a generator, that produces resources during compilation phase. User must implement this interface and bind this implementation to a method that would read resources at runtime.
Here is the full workflow:
native
, otherwise compiler should throw an exception.Therefore, the type of the value, returned by the {@link #generateMetadata(MetadataGeneratorContext,MethodReference)}method must match the returning type of the appropriate method, marked with {@link MetadataProvider}.
The valid resource types are the following:
null
value.All other types are not considered to be resources and therefore are not accepted.
@author Alexey Andreev
|
|