Package org.apache.camel.k.support
Class DelegatingRuntime
- java.lang.Object
-
- org.apache.camel.k.support.DelegatingRuntime
-
- All Implemented Interfaces:
AutoCloseable
,Runtime
,org.apache.camel.spi.HasCamelContext
public class DelegatingRuntime extends Object implements Runtime
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.camel.k.Runtime
Runtime.Listener, Runtime.Phase
-
-
Constructor Summary
Constructors Constructor Description DelegatingRuntime(Runtime runtime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRoutes(org.apache.camel.RoutesBuilder builder)
void
close()
org.apache.camel.CamelContext
getCamelContext()
<T extends org.apache.camel.CamelContext>
TgetCamelContext(Class<T> type)
org.apache.camel.spi.Registry
getRegistry()
Returns the registry associated to this runtime.void
setInitialProperties(String key, String value, String... keyVals)
void
setInitialProperties(Map<String,String> properties)
void
setInitialProperties(Properties properties)
void
setProperties(String key, String value, String... keyVals)
void
setProperties(Map<String,String> properties)
void
setProperties(Properties properties)
void
setPropertiesLocations(String... locations)
void
setPropertiesLocations(Collection<String> locations)
void
stop()
Lifecycle method used to stops the entire integration.
-
-
-
Constructor Detail
-
DelegatingRuntime
public DelegatingRuntime(Runtime runtime)
-
-
Method Detail
-
getCamelContext
public <T extends org.apache.camel.CamelContext> T getCamelContext(Class<T> type)
- Specified by:
getCamelContext
in interfaceRuntime
-
getRegistry
public org.apache.camel.spi.Registry getRegistry()
Description copied from interface:Runtime
Returns the registry associated to this runtime.- Specified by:
getRegistry
in interfaceRuntime
-
setInitialProperties
public void setInitialProperties(Properties properties)
- Specified by:
setInitialProperties
in interfaceRuntime
-
setInitialProperties
public void setInitialProperties(Map<String,String> properties)
- Specified by:
setInitialProperties
in interfaceRuntime
-
setInitialProperties
public void setInitialProperties(String key, String value, String... keyVals)
- Specified by:
setInitialProperties
in interfaceRuntime
-
setProperties
public void setProperties(Properties properties)
- Specified by:
setProperties
in interfaceRuntime
-
setProperties
public void setProperties(Map<String,String> properties)
- Specified by:
setProperties
in interfaceRuntime
-
setProperties
public void setProperties(String key, String value, String... keyVals)
- Specified by:
setProperties
in interfaceRuntime
-
addRoutes
public void addRoutes(org.apache.camel.RoutesBuilder builder)
-
setPropertiesLocations
public void setPropertiesLocations(Collection<String> locations)
- Specified by:
setPropertiesLocations
in interfaceRuntime
-
setPropertiesLocations
public void setPropertiesLocations(String... locations)
- Specified by:
setPropertiesLocations
in interfaceRuntime
-
stop
public void stop() throws Exception
Description copied from interface:Runtime
Lifecycle method used to stops the entire integration.
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceRuntime
- Throws:
Exception
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
- Specified by:
getCamelContext
in interfaceorg.apache.camel.spi.HasCamelContext
-
-