1
2
3
4
5
6
7 package org.mule.module.ibeans.spi.support;
8
9 import org.mule.api.endpoint.ImmutableEndpoint;
10 import org.mule.api.endpoint.InboundEndpoint;
11 import org.mule.component.DefaultInterfaceBinding;
12
13
14
15
16 public class DefaultRequestInterfaceBinding extends DefaultInterfaceBinding
17 {
18
19
20 protected InboundEndpoint inboundEndpoint;
21
22 public void setEndpoint(ImmutableEndpoint e)
23 {
24 if (e instanceof InboundEndpoint)
25 {
26 inboundEndpoint = (InboundEndpoint) e;
27
28 }
29 else
30 {
31 throw new IllegalArgumentException("An inbound endpoint is required for Request Interface binding");
32 }
33 }
34
35 public ImmutableEndpoint getEndpoint()
36 {
37 return inboundEndpoint;
38 }
39 }