Internal hook to extend JavaProtoAspect behavior.
@@ -142,9 +142,18 @@ public class JavaProtoAspect extends NativeAspectClass implements ConfiguredAspe
rpcSupport.mutateAspectDefinition(result, aspectParameters);
+ mutateAspectDefinition(result, aspectParameters);
+
return result.build();
}
+ /**
+ * Invoked after the default aspect definition has been created. Override this to add further
+ * attributes, etc. Default implementation does nothing.
+ */
+ protected void mutateAspectDefinition(
+ AspectDefinition.Builder builder, AspectParameters aspectParameters) {}
+
private static class Impl {
private final RuleContext ruleContext;
