public final class BundleResourceGenerator extends AbstractResourceGenerator implements SupportsGeneratorResultCaching
STRIP_COMMENTS
Constructor and Description |
---|
BundleResourceGenerator() |
Modifier and Type | Method and Description |
---|---|
String |
createAssignment(TreeLogger logger,
ResourceContext context,
JMethod method)
Produce the right-hand-side of a Java assignment expression to provide the
singleton instance object for a particular resource.
|
createFields, finish, init, prepare
public String createAssignment(TreeLogger logger, ResourceContext context, JMethod method) throws UnableToCompleteException
ResourceGenerator
Example:
new MySampleResource() { public Foo getFoo() { ... } }
createAssignment
in interface ResourceGenerator
createAssignment
in class AbstractResourceGenerator
UnableToCompleteException
Copyright © 2018. All rights reserved.