org.apache.camel.main.MainListener Java Examples

The following examples show how to use org.apache.camel.main.MainListener. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CustomMainListenerRecorder.java    From camel-quarkus with Apache License 2.0 4 votes vote down vote up
public RuntimeValue<MainListener> createSupportListener() {
    return new RuntimeValue<>(new CustomMainListener());
}
 
Example #2
Source File: CamelMainListenerBuildItem.java    From camel-quarkus with Apache License 2.0 4 votes vote down vote up
public CamelMainListenerBuildItem(RuntimeValue<MainListener> listener) {
    this.listener = listener;
}
 
Example #3
Source File: CamelMainListenerBuildItem.java    From camel-quarkus with Apache License 2.0 4 votes vote down vote up
public RuntimeValue<MainListener> getListener() {
    return listener;
}
 
Example #4
Source File: CamelMainRecorder.java    From camel-quarkus with Apache License 2.0 4 votes vote down vote up
public void addListener(RuntimeValue<CamelMain> main, RuntimeValue<MainListener> listener) {
    main.getValue().addMainListener(listener.getValue());
}
 
Example #5
Source File: CamelMain.java    From camel-quarkus with Apache License 2.0 4 votes vote down vote up
Collection<MainListener> getMainListeners() {
    return Collections.unmodifiableCollection(listeners);
}
 
Example #6
Source File: RuntimeRecorder.java    From camel-k-runtime with Apache License 2.0 4 votes vote down vote up
public RuntimeValue<MainListener> createMainListener(List<Runtime.Listener> listeners) {
    return new RuntimeValue<>(new RuntimeListenerAdapter(listeners));
}