1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.onehippo.forge.camel.component.hippo;
17
18 import java.util.HashMap;
19 import java.util.Map;
20
21 import org.apache.camel.Endpoint;
22 import org.apache.camel.support.DefaultComponent;
23 import org.slf4j.Logger;
24 import org.slf4j.LoggerFactory;
25
26
27
28
29 public class HippoEventComponent extends DefaultComponent {
30
31 private static final Logger LOG = LoggerFactory.getLogger(HippoEventComponent.class);
32
33 @Override
34 protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> properties) throws Exception {
35 Map<String, Object> endPointProps;
36
37 if (properties == null) {
38 endPointProps = new HashMap<String, Object>();
39 } else {
40 endPointProps = new HashMap<String, Object>(properties);
41 properties.clear();
42 }
43
44 return new HippoEventEndpoint(uri, this, endPointProps);
45 }
46 }