refactor: onMethodInitialized
package com.dtflys.forest.lifecycles;
import com.dtflys.forest.http.ForestRequestType;
+import com.dtflys.forest.reflection.ForestMethod;
import com.dtflys.forest.reflection.MetaRequest;
import java.lang.annotation.Annotation;
@@ -9,10 +10,10 @@ import java.lang.annotation.Annotation;
public class TraceRequestLifeCycle extends RequestLifeCycle {
@Override
- public MetaRequest buildMetaRequest(Annotation annotation) {
- MetaRequest metaRequest = super.buildMetaRequest(annotation);
+ public void onMethodInitialized(ForestMethod method, Annotation annotation) {
+ MetaRequest metaRequest = createMetaRequest(annotation);
metaRequest.setType(ForestRequestType.TRACE.getName());
- return metaRequest;
+ method.setMetaRequest(metaRequest);
}
