Skip to content

Commit

Permalink
fixes #94 and #104
Browse files Browse the repository at this point in the history
  • Loading branch information
janstey committed Nov 26, 2017
1 parent 00ae858 commit 08899d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,13 @@
import org.apache.camel.CamelContext;
import org.apache.camel.Endpoint;

import org.apache.camel.impl.UriEndpointComponent;
import org.apache.camel.impl.DefaultComponent;

/**
* Represents the component that manages {@link MyEndpoint}.
*/
public class MyComponent extends UriEndpointComponent {
public class MyComponent extends DefaultComponent {

public MyComponent() {
super(MyEndpoint.class);
}

public MyComponent(CamelContext context) {
super(context, MyEndpoint.class);
}

protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
Endpoint endpoint = new MyEndpoint(uri, this);
setProperties(endpoint, parameters);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
/**
* Represents a My endpoint.
*/
@UriEndpoint(scheme = "mycomponent", title = "My", syntax="mycomponent:name", consumerClass = MyConsumer.class, label = "My")
@UriEndpoint(firstVersion = "1.0-SNAPSHOT", scheme = "mycomponent", title = "My", syntax="mycomponent:name",
consumerClass = MyConsumer.class, label = "custom")
public class MyEndpoint extends DefaultEndpoint {
@UriPath @Metadata(required = "true")
private String name;
Expand Down

0 comments on commit 08899d5

Please sign in to comment.