public class org.apache.camel.spring.SpringCamelContext extends org.apache.camel.impl.DefaultCamelContext implements org.springframework.context.Lifecycle, org.springframework.context.ApplicationContextAware, org.springframework.context.Phased, org.springframework.context.ApplicationListener, org.springframework.core.Ordered
{
private static final org.slf4j.Logger LOG;
private static final java.lang.ThreadLocal NO_START;
private org.springframework.context.ApplicationContext applicationContext;
private org.apache.camel.component.event.EventComponent eventComponent;
private boolean shutdownEager;
public void <init>()
{
org.apache.camel.spring.SpringCamelContext v;
v := @this: org.apache.camel.spring.SpringCamelContext;
specialinvoke v.<org.apache.camel.impl.DefaultCamelContext: void <init>()>();
v.<org.apache.camel.spring.SpringCamelContext: boolean shutdownEager> = 1;
return;
}
public void <init>(org.springframework.context.ApplicationContext)
{
org.apache.camel.spring.SpringCamelContext v;
org.springframework.context.ApplicationContext v;
v := @this: org.apache.camel.spring.SpringCamelContext;
v := @parameter: org.springframework.context.ApplicationContext;
specialinvoke v.<org.apache.camel.impl.DefaultCamelContext: void <init>()>();
v.<org.apache.camel.spring.SpringCamelContext: boolean shutdownEager> = 1;
virtualinvoke v.<org.apache.camel.spring.SpringCamelContext: void setApplicationContext(org.springframework.context.ApplicationContext)>(v);
return;
}
public static void setNoStart(boolean)
{
java.lang.ThreadLocal v, v;
java.lang.Boolean v;
boolean v;
v := @parameter: boolean;
if v == 0 goto label;
v = <org.apache.camel.spring.SpringCamelContext: java.lang.ThreadLocal NO_START>;
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(boolean)>(1);
virtualinvoke v.<java.lang.ThreadLocal: void set(java.lang.Object)>(v);
goto label;
label:
v = <org.apache.camel.spring.SpringCamelContext: java.lang.ThreadLocal NO_START>;
virtualinvoke v.<java.lang.ThreadLocal: void set(java.lang.Object)>(null);
label:
return;
}
public static org.apache.camel.spring.SpringCamelContext springCamelContext(org.springframework.context.ApplicationContext) throws java.lang.Exception
{
org.apache.camel.spring.SpringCamelContext v;
org.springframework.context.ApplicationContext v;
v := @parameter: org.springframework.context.ApplicationContext;
v = staticinvoke <org.apache.camel.spring.SpringCamelContext: org.apache.camel.spring.SpringCamelContext springCamelContext(org.springframework.context.ApplicationContext,boolean)>(v, 1);
return v;
}
public static org.apache.camel.spring.SpringCamelContext springCamelContext(org.springframework.context.ApplicationContext, boolean) throws java.lang.Exception
{
int v;
org.apache.camel.spring.SpringCamelContext v;
java.lang.Object v;
java.lang.String[] v;
java.lang.String v;
org.springframework.context.ApplicationContext v;
boolean v;
v := @parameter: org.springframework.context.ApplicationContext;
v := @parameter: boolean;
if v == null goto label;
v = interfaceinvoke v.<org.springframework.context.ApplicationContext: java.lang.String[] getBeanNamesForType(java.lang.Class)>(class "Lorg/apache/camel/spring/SpringCamelContext;");
v = lengthof v;
if v != 1 goto label;
v = v[0];
v = interfaceinvoke v.<org.springframework.context.ApplicationContext: java.lang.Object getBean(java.lang.String,java.lang.Class)>(v, class "Lorg/apache/camel/spring/SpringCamelContext;");
return v;
label:
v = new org.apache.camel.spring.SpringCamelContext;
specialinvoke v.<org.apache.camel.spring.SpringCamelContext: void <init>()>();
virtualinvoke v.<org.apache.camel.spring.SpringCamelContext: void setApplicationContext(org.springframework.context.ApplicationContext)>(v);
if v == 0 goto label;
virtualinvoke v.<org.apache.camel.spring.SpringCamelContext: void start()>();
label:
return v;
}
public static org.apache.camel.spring.SpringCamelContext springCamelContext(java.lang.String) throws java.lang.Exception
{
org.apache.camel.spring.SpringCamelContext v;
org.springframework.context.support.ClassPathXmlApplicationContext v;
java.lang.String v;
v := @parameter: java.lang.String;
v = new org.springframework.context.support.ClassPathXmlApplicationContext;
specialinvoke v.<org.springframework.context.support.ClassPathXmlApplicationContext: void <init>(java.lang.String)>(v);
v = staticinvoke <org.apache.camel.spring.SpringCamelContext: org.apache.camel.spring.SpringCamelContext springCamelContext(org.springframework.context.ApplicationContext)>(v);
return v;
}
public void start()
{
org.apache.camel.RuntimeCamelException v;
java.lang.ThreadLocal v;
org.slf4j.Logger v, v, v;
org.apache.camel.util.StopWatch v;
long v;
java.lang.Exception v;
java.lang.Long v;
java.lang.Boolean v;
org.apache.camel.spring.SpringCamelContext v;
java.lang.Object v;
boolean v, v, v;
v := @this: org.apache.camel.spring.SpringCamelContext;
v = <java.lang.Boolean: java.lang.Boolean TRUE>;
v = <org.apache.camel.spring.SpringCamelContext: java.lang.ThreadLocal NO_START>;
v = virtualinvoke v.<java.lang.ThreadLocal: java.lang.Object get()>();
v = virtualinvoke v.<java.lang.Boolean: boolean equals(java.lang.Object)>(v);
if v == 0 goto label;
v = <org.apache.camel.spring.SpringCamelContext: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void trace(java.lang.String)>("Ignoring start() as NO_START is false");
return;
label:
v = virtualinvoke v.<org.apache.camel.spring.SpringCamelContext: boolean isStarted()>();
if v != 0 goto label;
v = virtualinvoke v.<org.apache.camel.spring.SpringCamelContext: boolean isStarting()>();
if v != 0 goto label;
label:
v = new org.apache.camel.util.StopWatch;
specialinvoke v.<org.apache.camel.util.StopWatch: void <init>()>();
specialinvoke v.<org.apache.camel.impl.DefaultCamelContext: void start()>();
v = <org.apache.camel.spring.SpringCamelContext: org.slf4j.Logger LOG>;
v = virtualinvoke v.<org.apache.camel.util.StopWatch: long stop()>();
v = staticinvoke <java.lang.Long: java.lang.Long valueOf(long)>(v);
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String,java.lang.Object)>("start() took {} millis", v);
label:
goto label;
label:
v := @caughtexception;
v = staticinvoke <org.apache.camel.util.ObjectHelper: org.apache.camel.RuntimeCamelException wrapRuntimeCamelException(java.lang.Throwable)>(v);
throw v;
label:
v = <org.apache.camel.spring.SpringCamelContext: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void trace(java.lang.String)>("Ignoring start() as Camel is already started");
label:
return;
catch java.lang.Exception from label to label with label;
}
public void stop()
{
org.apache.camel.RuntimeCamelException v;
org.slf4j.Logger v;
org.apache.camel.spring.SpringCamelContext v;
java.lang.Exception v;
boolean v, v;
v := @this: org.apache.camel.spring.SpringCamelContext;
v = virtualinvoke v.<org.apache.camel.spring.SpringCamelContext: boolean isStopping()>();
if v != 0 goto label;
v = virtualinvoke v.<org.apache.camel.spring.SpringCamelContext: boolean isStopped()>();
if v != 0 goto label;
label:
specialinvoke v.<org.apache.camel.impl.DefaultCamelContext: void stop()>();
label:
goto label;
label:
v := @caughtexception;
v = staticinvoke <org.apache.camel.util.ObjectHelper: org.apache.camel.RuntimeCamelException wrapRuntimeCamelException(java.lang.Throwable)>(v);
throw v;
label:
v = <org.apache.camel.spring.SpringCamelContext: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void trace(java.lang.String)>("Ignoring stop() as Camel is already stopped");
label:
return;
catch java.lang.Exception from label to label with label;
}
public void onApplicationEvent(org.springframework.context.ApplicationEvent)
{
org.slf4j.Logger v;
org.springframework.context.ApplicationContext v, v;
org.springframework.context.ApplicationEvent v;
org.apache.camel.component.event.EventComponent v, v;
org.apache.camel.spring.SpringCamelContext v;
boolean v;
v := @this: org.apache.camel.spring.SpringCamelContext;
v := @parameter: org.springframework.context.ApplicationEvent;
v = <org.apache.camel.spring.SpringCamelContext: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String,java.lang.Object)>("onApplicationEvent: {}", v);
v = v instanceof org.springframework.context.event.ContextRefreshedEvent;
if v == 0 goto label;
v = virtualinvoke v.<org.springframework.context.event.ContextRefreshedEvent: org.springframework.context.ApplicationContext getApplicationContext()>();
v = v.<org.apache.camel.spring.SpringCamelContext: org.springframework.context.ApplicationContext applicationContext>;
if v != v goto label;
virtualinvoke v.<org.apache.camel.spring.SpringCamelContext: void start()>();
label:
v = v.<org.apache.camel.spring.SpringCamelContext: org.apache.camel.component.event.EventComponent eventComponent>;
if v == null goto label;
v = v.<org.apache.camel.spring.SpringCamelContext: org.apache.camel.component.event.EventComponent eventComponent>;
virtualinvoke v.<org.apache.camel.component.event.EventComponent: void onApplicationEvent(org.springframework.context.ApplicationEvent)>(v);
label:
return;
}
public int getOrder()
{
org.apache.camel.spring.SpringCamelContext v;
v := @this: org.apache.camel.spring.SpringCamelContext;
return 2147483647;
}
public org.springframework.context.ApplicationContext getApplicationContext()
{
org.apache.camel.spring.SpringCamelContext v;
org.springframework.context.ApplicationContext v;
v := @this: org.apache.camel.spring.SpringCamelContext;
v = v.<org.apache.camel.spring.SpringCamelContext: org.springframework.context.ApplicationContext applicationContext>;
return v;
}
public void setApplicationContext(org.springframework.context.ApplicationContext) throws org.springframework.beans.BeansException
{
org.slf4j.Logger v, v;
org.apache.camel.Component v;
org.springframework.context.ApplicationContext v;
java.lang.Thread v;
org.apache.camel.component.event.EventComponent v, v;
org.apache.camel.spring.SpringCamelContext v;
java.lang.ClassLoader v, v;
boolean v;
v := @this: org.apache.camel.spring.SpringCamelContext;
v := @parameter: org.springframework.context.ApplicationContext;
v.<org.apache.camel.spring.SpringCamelContext: org.springframework.context.ApplicationContext applicationContext> = v;
if v == null goto label;
v = interfaceinvoke v.<org.springframework.context.ApplicationContext: java.lang.ClassLoader getClassLoader()>();
if v == null goto label;
v = interfaceinvoke v.<org.springframework.context.ApplicationContext: java.lang.ClassLoader getClassLoader()>();
goto label;
label:
v = <org.apache.camel.spring.SpringCamelContext: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void warn(java.lang.String)>("Cannot find the class loader from application context, using the thread context class loader instead");
v = staticinvoke <java.lang.Thread: java.lang.Thread currentThread()>();
v = virtualinvoke v.<java.lang.Thread: java.lang.ClassLoader getContextClassLoader()>();
label:
v = <org.apache.camel.spring.SpringCamelContext: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String,java.lang.Object)>("Set the application context classloader to: {}", v);
virtualinvoke v.<org.apache.camel.spring.SpringCamelContext: void setApplicationContextClassLoader(java.lang.ClassLoader)>(v);
v = v instanceof org.springframework.context.ConfigurableApplicationContext;
if v == 0 goto label;
v = virtualinvoke v.<org.apache.camel.spring.SpringCamelContext: org.apache.camel.Component hasComponent(java.lang.String)>("spring-event");
if v != null goto label;
v = new org.apache.camel.component.event.EventComponent;
specialinvoke v.<org.apache.camel.component.event.EventComponent: void <init>(org.springframework.context.ApplicationContext)>(v);
v.<org.apache.camel.spring.SpringCamelContext: org.apache.camel.component.event.EventComponent eventComponent> = v;
v = v.<org.apache.camel.spring.SpringCamelContext: org.apache.camel.component.event.EventComponent eventComponent>;
virtualinvoke v.<org.apache.camel.spring.SpringCamelContext: void addComponent(java.lang.String,org.apache.camel.Component)>("spring-event", v);
label:
return;
}
public org.apache.camel.component.event.EventEndpoint getEventEndpoint()
{
org.apache.camel.spring.SpringCamelContext v;
v := @this: org.apache.camel.spring.SpringCamelContext;
return null;
}
public void setEventEndpoint(org.apache.camel.component.event.EventEndpoint)
{
org.apache.camel.component.event.EventEndpoint v;
org.apache.camel.spring.SpringCamelContext v;
v := @this: org.apache.camel.spring.SpringCamelContext;
v := @parameter: org.apache.camel.component.event.EventEndpoint;
return;
}
public boolean isShutdownEager()
{
org.apache.camel.spring.SpringCamelContext v;
boolean v;
v := @this: org.apache.camel.spring.SpringCamelContext;
v = v.<org.apache.camel.spring.SpringCamelContext: boolean shutdownEager>;
return v;
}
public void setShutdownEager(boolean)
{
org.apache.camel.spring.SpringCamelContext v;
boolean v;
v := @this: org.apache.camel.spring.SpringCamelContext;
v := @parameter: boolean;
v.<org.apache.camel.spring.SpringCamelContext: boolean shutdownEager> = v;
return;
}
protected org.apache.camel.spi.Injector createInjector()
{
org.slf4j.Logger v;
org.springframework.context.ApplicationContext v, v, v;
org.apache.camel.spi.Injector v;
org.apache.camel.spring.SpringCamelContext v;
java.lang.String v;
org.apache.camel.spring.spi.SpringInjector v;
boolean v;
v := @this: org.apache.camel.spring.SpringCamelContext;
v = v.<org.apache.camel.spring.SpringCamelContext: org.springframework.context.ApplicationContext applicationContext>;
v = v instanceof org.springframework.context.ConfigurableApplicationContext;
if v == 0 goto label;
v = new org.apache.camel.spring.spi.SpringInjector;
v = v.<org.apache.camel.spring.SpringCamelContext: org.springframework.context.ApplicationContext applicationContext>;
specialinvoke v.<org.apache.camel.spring.spi.SpringInjector: void <init>(org.springframework.context.ConfigurableApplicationContext)>(v);
return v;
label:
v = <org.apache.camel.spring.SpringCamelContext: org.slf4j.Logger LOG>;
v = v.<org.apache.camel.spring.SpringCamelContext: org.springframework.context.ApplicationContext applicationContext>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (org.springframework.context.ApplicationContext)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Cannot use SpringInjector as applicationContext is not a ConfigurableApplicationContext as its: \u0001");
interfaceinvoke v.<org.slf4j.Logger: void warn(java.lang.String)>(v);
v = specialinvoke v.<org.apache.camel.impl.DefaultCamelContext: org.apache.camel.spi.Injector createInjector()>();
return v;
}
protected org.apache.camel.spi.ManagementMBeanAssembler createManagementMBeanAssembler()
{
org.apache.camel.spring.SpringCamelContext v;
org.apache.camel.spring.spi.SpringManagementMBeanAssembler v;
v := @this: org.apache.camel.spring.SpringCamelContext;
v = new org.apache.camel.spring.spi.SpringManagementMBeanAssembler;
specialinvoke v.<org.apache.camel.spring.spi.SpringManagementMBeanAssembler: void <init>(org.apache.camel.CamelContext)>(v);
return v;
}
protected org.apache.camel.component.event.EventEndpoint createEventEndpoint()
{
org.apache.camel.spring.SpringCamelContext v;
org.apache.camel.Endpoint v;
v := @this: org.apache.camel.spring.SpringCamelContext;
v = virtualinvoke v.<org.apache.camel.spring.SpringCamelContext: org.apache.camel.Endpoint getEndpoint(java.lang.String,java.lang.Class)>("spring-event:default", class "Lorg/apache/camel/component/event/EventEndpoint;");
return v;
}
protected org.apache.camel.Endpoint convertBeanToEndpoint(java.lang.String, java.lang.Object)
{
org.apache.camel.component.bean.BeanProcessor v;
org.apache.camel.impl.ProcessorEndpoint v;
org.apache.camel.TypeConverter v;
org.apache.camel.spring.SpringCamelContext v;
java.lang.Object v, v;
java.lang.String v;
v := @this: org.apache.camel.spring.SpringCamelContext;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Object;
v = virtualinvoke v.<org.apache.camel.spring.SpringCamelContext: org.apache.camel.TypeConverter getTypeConverter()>();
v = interfaceinvoke v.<org.apache.camel.TypeConverter: java.lang.Object convertTo(java.lang.Class,java.lang.Object)>(class "Lorg/apache/camel/Endpoint;", v);
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Endpoint: void setCamelContext(org.apache.camel.CamelContext)>(v);
return v;
label:
v = new org.apache.camel.impl.ProcessorEndpoint;
v = new org.apache.camel.component.bean.BeanProcessor;
specialinvoke v.<org.apache.camel.component.bean.BeanProcessor: void <init>(java.lang.Object,org.apache.camel.CamelContext)>(v, v);
specialinvoke v.<org.apache.camel.impl.ProcessorEndpoint: void <init>(java.lang.String,org.apache.camel.CamelContext,org.apache.camel.Processor)>(v, v, v);
return v;
}
protected org.apache.camel.spi.Registry createRegistry()
{
org.apache.camel.spring.SpringCamelContext v;
org.apache.camel.spring.spi.ApplicationContextRegistry v;
org.springframework.context.ApplicationContext v;
v := @this: org.apache.camel.spring.SpringCamelContext;
v = new org.apache.camel.spring.spi.ApplicationContextRegistry;
v = virtualinvoke v.<org.apache.camel.spring.SpringCamelContext: org.springframework.context.ApplicationContext getApplicationContext()>();
specialinvoke v.<org.apache.camel.spring.spi.ApplicationContextRegistry: void <init>(org.springframework.context.ApplicationContext)>(v);
return v;
}
protected org.apache.camel.spi.ModelJAXBContextFactory createModelJAXBContextFactory()
{
org.apache.camel.spring.SpringCamelContext v;
org.apache.camel.spring.SpringModelJAXBContextFactory v;
v := @this: org.apache.camel.spring.SpringCamelContext;
v = new org.apache.camel.spring.SpringModelJAXBContextFactory;
specialinvoke v.<org.apache.camel.spring.SpringModelJAXBContextFactory: void <init>()>();
return v;
}
public java.lang.String toString()
{
org.springframework.context.ApplicationContext v, v;
org.apache.camel.spring.SpringCamelContext v;
java.lang.StringBuilder v, v, v, v;
java.lang.String v, v, v;
v := @this: org.apache.camel.spring.SpringCamelContext;
v = new java.lang.StringBuilder;
specialinvoke v.<java.lang.StringBuilder: void <init>()>();
v = virtualinvoke v.<java.lang.StringBuilder: java.lang.StringBuilder append(java.lang.String)>("SpringCamelContext(");
v = virtualinvoke v.<org.apache.camel.spring.SpringCamelContext: java.lang.String getName()>();
v = virtualinvoke v.<java.lang.StringBuilder: java.lang.StringBuilder append(java.lang.String)>(v);
virtualinvoke v.<java.lang.StringBuilder: java.lang.StringBuilder append(java.lang.String)>(")");
v = v.<org.apache.camel.spring.SpringCamelContext: org.springframework.context.ApplicationContext applicationContext>;
if v == null goto label;
v = virtualinvoke v.<java.lang.StringBuilder: java.lang.StringBuilder append(java.lang.String)>(" with spring id ");
v = v.<org.apache.camel.spring.SpringCamelContext: org.springframework.context.ApplicationContext applicationContext>;
v = interfaceinvoke v.<org.springframework.context.ApplicationContext: java.lang.String getId()>();
virtualinvoke v.<java.lang.StringBuilder: java.lang.StringBuilder append(java.lang.String)>(v);
label:
v = virtualinvoke v.<java.lang.StringBuilder: java.lang.String toString()>();
return v;
}
public int getPhase()
{
org.apache.camel.spring.SpringCamelContext v;
v := @this: org.apache.camel.spring.SpringCamelContext;
return 2147483647;
}
public boolean isRunning()
{
org.apache.camel.spring.SpringCamelContext v;
boolean v, v, v;
v := @this: org.apache.camel.spring.SpringCamelContext;
v = virtualinvoke v.<org.apache.camel.spring.SpringCamelContext: boolean isStopping()>();
if v != 0 goto label;
v = virtualinvoke v.<org.apache.camel.spring.SpringCamelContext: boolean isStopped()>();
if v != 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
static void <clinit>()
{
java.lang.ThreadLocal v;
org.slf4j.Logger v;
v = staticinvoke <org.slf4j.LoggerFactory: org.slf4j.Logger getLogger(java.lang.Class)>(class "Lorg/apache/camel/spring/SpringCamelContext;");
<org.apache.camel.spring.SpringCamelContext: org.slf4j.Logger LOG> = v;
v = new java.lang.ThreadLocal;
specialinvoke v.<java.lang.ThreadLocal: void <init>()>();
<org.apache.camel.spring.SpringCamelContext: java.lang.ThreadLocal NO_START> = v;
return;
}
}