public static class ResourceGenerator extends Object
ResourceGeneratorType
annotation. Instances of ResourceGenerator must
support default-instantiation (i.e. via Class#newInstance()
).
The methods on an instance of ResourceGenerator will be called in the following order by the resource generation system:
#init
#prepare
once for each method#finish
.#createFields
#createAssignment
once for each method#finish
The methods #prepare
and #createAssignment
will be called
only with those methods whose ResourcePrototype-derived type specifies the
particular type of ResourceGenerator as the implementor. The relative order
in which ResourceGenerators are invoked and the specific order in which the
bundle's methods are presented is undefined.
Direct access to the contents of the generated bundle implementation is intentionally limited to prevent unrelated ResourceGenerators from potentially creating namespace conflicts or generating invalid Java source.
ResourceGeneratorUtil
,
Serialized FormCopyright © 2018. All rights reserved.