@@ -0,0 +1,806 @@
+package it.mapeto2my.java_aop.factories.models.json;%0A%0Aimport java.lang.reflect.Method;%0A%0Apublic class Flow %7B%0A%0A%09private Flowable%5B%5D flowables;%0A%09private int flowStep;%0A%09private int flowCount;%0A%09%0A%09public Flow(int flowableNumber) %7B%0A%09%09%0A%09%09this.flowables = new Flowable%5BflowableNumber%5D;%0A%09%7D%0A%0A%0A%09public Object flow(Object target,Method targetMethod) throws Exception%7B%0A%09%09%0A%09%09Object returnedObj = null;%0A%09%09%0A%09%09if(flowStep == flowCount)%0A%09%09%09returnedObj= targetMethod.invoke(target);%0A%09%09else%0A%09%09%09returnedObj = flowables%5BflowStep++%5D.intercept(this,target,targetMethod);%0A%09%09%0A%09%09return returnedObj;%0A%09%7D%0A%0A%09public void addFlowable(Flowable flowable)%7B%0A%09%09flowables%5BflowCount++%5D = flowable;%0A%09%7D%0A%0A%09public Flowable%5B%5D getFlowables() %7B%0A%09%09return flowables;%0A%09%7D%0A%0A%09public void setFlowables(Flowable%5B%5D flowables) %7B%0A%09%09this.flowables = flowables;%0A%09%7D%09%0A%7D%0A

Create Flow.java