1 | package de.uka.ipd.sdq.pcm.transformations.builder.infrastructure; |
2 | |
3 | import de.uka.ipd.sdq.pcm.repository.OperationInterface; |
4 | import de.uka.ipd.sdq.pcm.resourceenvironment.ResourceContainer; |
5 | import de.uka.ipd.sdq.pcm.transformations.builder.seff.DelegatorComponentSeffBuilder; |
6 | import de.uka.ipd.sdq.pcm.transformations.builder.seff.MarshallerComponentSeffBuilder; |
7 | import de.uka.ipd.sdq.pcm.transformations.builder.util.PCMAndCompletionModelHolder; |
8 | |
9 | public class MarshallingComponentBuilder extends |
10 | BasicMiddlewareComponentBuilder { |
11 | |
12 | public enum MarshallerSide { |
13 | CLIENT, |
14 | SERVER |
15 | } |
16 | |
17 | private MarshallerSide side; |
18 | |
19 | public MarshallingComponentBuilder( |
20 | PCMAndCompletionModelHolder models, |
21 | OperationInterface providedIf, |
22 | OperationInterface requiredIf, |
23 | OperationInterface middlewareInterface, |
24 | ResourceContainer container, |
25 | MarshallerSide side) { |
26 | super(models, providedIf, requiredIf, middlewareInterface, container, "MarshallingComponent_"+side); |
27 | this.side = side; |
28 | } |
29 | |
30 | @Override |
31 | protected DelegatorComponentSeffBuilder getSeffBuilder() { |
32 | MarshallerComponentSeffBuilder builder = new MarshallerComponentSeffBuilder(getOperationProvidedRole(),getOperationRequiredRole(),getMiddlewareRole(),side); |
33 | return builder; |
34 | } |
35 | |
36 | } |