public class org.apache.activemq.camel.component.CamelEndpointLoader extends java.lang.Object implements org.apache.camel.CamelContextAware
{
private static final transient org.slf4j.Logger LOG;
private org.apache.camel.CamelContext camelContext;
private org.apache.activemq.camel.component.ActiveMQComponent component;
org.apache.activemq.advisory.DestinationSource source;
public void <init>()
{
org.apache.activemq.camel.component.CamelEndpointLoader v;
v := @this: org.apache.activemq.camel.component.CamelEndpointLoader;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public void <init>(org.apache.camel.CamelContext, org.apache.activemq.advisory.DestinationSource)
{
org.apache.camel.CamelContext v;
org.apache.activemq.camel.component.CamelEndpointLoader v;
org.apache.activemq.advisory.DestinationSource v;
v := @this: org.apache.activemq.camel.component.CamelEndpointLoader;
v := @parameter: org.apache.camel.CamelContext;
v := @parameter: org.apache.activemq.advisory.DestinationSource;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<org.apache.activemq.camel.component.CamelEndpointLoader: org.apache.camel.CamelContext camelContext> = v;
v.<org.apache.activemq.camel.component.CamelEndpointLoader: org.apache.activemq.advisory.DestinationSource source> = v;
return;
}
private void postConstruct()
{
java.lang.RuntimeException v;
java.lang.Exception v;
org.apache.activemq.camel.component.CamelEndpointLoader v;
v := @this: org.apache.activemq.camel.component.CamelEndpointLoader;
label:
virtualinvoke v.<org.apache.activemq.camel.component.CamelEndpointLoader: void afterPropertiesSet()>();
label:
goto label;
label:
v := @caughtexception;
v = new java.lang.RuntimeException;
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.Throwable)>(v);
throw v;
label:
return;
catch java.lang.Exception from label to label with label;
}
public void afterPropertiesSet() throws java.lang.Exception
{
org.apache.activemq.camel.component.CamelEndpointLoader$1 v;
java.util.Iterator v, v;
org.apache.activemq.camel.component.CamelEndpointLoader v;
java.util.Set v, v;
java.lang.Object v, v;
boolean v, v;
org.apache.activemq.advisory.DestinationSource v, v, v, v;
v := @this: org.apache.activemq.camel.component.CamelEndpointLoader;
v = v.<org.apache.activemq.camel.component.CamelEndpointLoader: org.apache.activemq.advisory.DestinationSource source>;
if v == null goto label;
v = v.<org.apache.activemq.camel.component.CamelEndpointLoader: org.apache.activemq.advisory.DestinationSource source>;
v = new org.apache.activemq.camel.component.CamelEndpointLoader$1;
specialinvoke v.<org.apache.activemq.camel.component.CamelEndpointLoader$1: void <init>(org.apache.activemq.camel.component.CamelEndpointLoader)>(v);
virtualinvoke v.<org.apache.activemq.advisory.DestinationSource: void setDestinationListener(org.apache.activemq.advisory.DestinationListener)>(v);
v = v.<org.apache.activemq.camel.component.CamelEndpointLoader: org.apache.activemq.advisory.DestinationSource source>;
v = virtualinvoke v.<org.apache.activemq.advisory.DestinationSource: java.util.Set getQueues()>();
v = interfaceinvoke v.<java.util.Set: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
virtualinvoke v.<org.apache.activemq.camel.component.CamelEndpointLoader: void addQueue(org.apache.activemq.command.ActiveMQQueue)>(v);
goto label;
label:
v = v.<org.apache.activemq.camel.component.CamelEndpointLoader: org.apache.activemq.advisory.DestinationSource source>;
v = virtualinvoke v.<org.apache.activemq.advisory.DestinationSource: java.util.Set getTopics()>();
v = interfaceinvoke v.<java.util.Set: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
virtualinvoke v.<org.apache.activemq.camel.component.CamelEndpointLoader: void addTopic(org.apache.activemq.command.ActiveMQTopic)>(v);
goto label;
label:
return;
}
public org.apache.camel.CamelContext getCamelContext()
{
org.apache.camel.CamelContext v;
org.apache.activemq.camel.component.CamelEndpointLoader v;
v := @this: org.apache.activemq.camel.component.CamelEndpointLoader;
v = v.<org.apache.activemq.camel.component.CamelEndpointLoader: org.apache.camel.CamelContext camelContext>;
return v;
}
public void setCamelContext(org.apache.camel.CamelContext)
{
org.apache.camel.CamelContext v;
org.apache.activemq.camel.component.CamelEndpointLoader v;
v := @this: org.apache.activemq.camel.component.CamelEndpointLoader;
v := @parameter: org.apache.camel.CamelContext;
v.<org.apache.activemq.camel.component.CamelEndpointLoader: org.apache.camel.CamelContext camelContext> = v;
return;
}
public org.apache.activemq.camel.component.ActiveMQComponent getComponent()
{
org.apache.camel.CamelContext v;
org.apache.activemq.camel.component.ActiveMQComponent v, v;
org.apache.activemq.camel.component.CamelEndpointLoader v;
org.apache.camel.Component v;
v := @this: org.apache.activemq.camel.component.CamelEndpointLoader;
v = v.<org.apache.activemq.camel.component.CamelEndpointLoader: org.apache.activemq.camel.component.ActiveMQComponent component>;
if v != null goto label;
v = v.<org.apache.activemq.camel.component.CamelEndpointLoader: org.apache.camel.CamelContext camelContext>;
v = interfaceinvoke v.<org.apache.camel.CamelContext: org.apache.camel.Component getComponent(java.lang.String,java.lang.Class)>("activemq", class "Lorg/apache/activemq/camel/component/ActiveMQComponent;");
v.<org.apache.activemq.camel.component.CamelEndpointLoader: org.apache.activemq.camel.component.ActiveMQComponent component> = v;
label:
v = v.<org.apache.activemq.camel.component.CamelEndpointLoader: org.apache.activemq.camel.component.ActiveMQComponent component>;
return v;
}
public void setComponent(org.apache.activemq.camel.component.ActiveMQComponent)
{
org.apache.activemq.camel.component.ActiveMQComponent v;
org.apache.activemq.camel.component.CamelEndpointLoader v;
v := @this: org.apache.activemq.camel.component.CamelEndpointLoader;
v := @parameter: org.apache.activemq.camel.component.ActiveMQComponent;
v.<org.apache.activemq.camel.component.CamelEndpointLoader: org.apache.activemq.camel.component.ActiveMQComponent component> = v;
return;
}
protected void addQueue(org.apache.activemq.command.ActiveMQQueue) throws java.lang.Exception
{
org.apache.camel.CamelContext v;
org.apache.activemq.camel.component.ActiveMQComponent v;
org.apache.activemq.camel.component.CamelEndpointLoader v;
org.apache.camel.component.jms.JmsConfiguration v;
org.apache.activemq.command.ActiveMQQueue v;
org.apache.camel.component.jms.JmsQueueEndpoint v;
java.lang.String v, v;
v := @this: org.apache.activemq.camel.component.CamelEndpointLoader;
v := @parameter: org.apache.activemq.command.ActiveMQQueue;
v = virtualinvoke v.<org.apache.activemq.camel.component.CamelEndpointLoader: java.lang.String getQueueUri(org.apache.activemq.command.ActiveMQQueue)>(v);
v = virtualinvoke v.<org.apache.activemq.camel.component.CamelEndpointLoader: org.apache.activemq.camel.component.ActiveMQComponent getComponent()>();
v = new org.apache.camel.component.jms.JmsQueueEndpoint;
v = virtualinvoke v.<org.apache.activemq.command.ActiveMQQueue: java.lang.String getPhysicalName()>();
v = virtualinvoke v.<org.apache.activemq.camel.component.ActiveMQComponent: org.apache.camel.component.jms.JmsConfiguration getConfiguration()>();
specialinvoke v.<org.apache.camel.component.jms.JmsQueueEndpoint: void <init>(java.lang.String,org.apache.camel.component.jms.JmsComponent,java.lang.String,org.apache.camel.component.jms.JmsConfiguration)>(v, v, v, v);
v = v.<org.apache.activemq.camel.component.CamelEndpointLoader: org.apache.camel.CamelContext camelContext>;
interfaceinvoke v.<org.apache.camel.CamelContext: org.apache.camel.Endpoint addEndpoint(java.lang.String,org.apache.camel.Endpoint)>(v, v);
return;
}
protected java.lang.String getQueueUri(org.apache.activemq.command.ActiveMQQueue)
{
org.apache.activemq.camel.component.CamelEndpointLoader v;
java.lang.String v, v;
org.apache.activemq.command.ActiveMQQueue v;
v := @this: org.apache.activemq.camel.component.CamelEndpointLoader;
v := @parameter: org.apache.activemq.command.ActiveMQQueue;
v = virtualinvoke v.<org.apache.activemq.command.ActiveMQQueue: java.lang.String getPhysicalName()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(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[])>("activemq:\u0001");
return v;
}
protected void removeQueue(org.apache.activemq.command.ActiveMQQueue) throws java.lang.Exception
{
org.apache.camel.CamelContext v;
org.apache.activemq.camel.component.CamelEndpointLoader v;
java.lang.String v;
org.apache.activemq.command.ActiveMQQueue v;
v := @this: org.apache.activemq.camel.component.CamelEndpointLoader;
v := @parameter: org.apache.activemq.command.ActiveMQQueue;
v = virtualinvoke v.<org.apache.activemq.camel.component.CamelEndpointLoader: java.lang.String getQueueUri(org.apache.activemq.command.ActiveMQQueue)>(v);
v = v.<org.apache.activemq.camel.component.CamelEndpointLoader: org.apache.camel.CamelContext camelContext>;
interfaceinvoke v.<org.apache.camel.CamelContext: java.util.Collection removeEndpoints(java.lang.String)>(v);
return;
}
protected void addTopic(org.apache.activemq.command.ActiveMQTopic) throws java.lang.Exception
{
org.apache.camel.CamelContext v;
org.apache.camel.component.jms.JmsEndpoint v;
org.apache.activemq.camel.component.ActiveMQComponent v;
org.apache.activemq.camel.component.CamelEndpointLoader v;
org.apache.camel.component.jms.JmsConfiguration v;
org.apache.activemq.command.ActiveMQTopic v;
java.lang.String v, v;
v := @this: org.apache.activemq.camel.component.CamelEndpointLoader;
v := @parameter: org.apache.activemq.command.ActiveMQTopic;
v = virtualinvoke v.<org.apache.activemq.camel.component.CamelEndpointLoader: java.lang.String getTopicUri(org.apache.activemq.command.ActiveMQTopic)>(v);
v = virtualinvoke v.<org.apache.activemq.camel.component.CamelEndpointLoader: org.apache.activemq.camel.component.ActiveMQComponent getComponent()>();
v = new org.apache.camel.component.jms.JmsEndpoint;
v = virtualinvoke v.<org.apache.activemq.command.ActiveMQTopic: java.lang.String getPhysicalName()>();
v = virtualinvoke v.<org.apache.activemq.camel.component.ActiveMQComponent: org.apache.camel.component.jms.JmsConfiguration getConfiguration()>();
specialinvoke v.<org.apache.camel.component.jms.JmsEndpoint: void <init>(java.lang.String,org.apache.camel.component.jms.JmsComponent,java.lang.String,boolean,org.apache.camel.component.jms.JmsConfiguration)>(v, v, v, 1, v);
v = v.<org.apache.activemq.camel.component.CamelEndpointLoader: org.apache.camel.CamelContext camelContext>;
interfaceinvoke v.<org.apache.camel.CamelContext: org.apache.camel.Endpoint addEndpoint(java.lang.String,org.apache.camel.Endpoint)>(v, v);
return;
}
protected java.lang.String getTopicUri(org.apache.activemq.command.ActiveMQTopic)
{
org.apache.activemq.command.ActiveMQTopic v;
org.apache.activemq.camel.component.CamelEndpointLoader v;
java.lang.String v, v;
v := @this: org.apache.activemq.camel.component.CamelEndpointLoader;
v := @parameter: org.apache.activemq.command.ActiveMQTopic;
v = virtualinvoke v.<org.apache.activemq.command.ActiveMQTopic: java.lang.String getPhysicalName()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(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[])>("activemq:topic:\u0001");
return v;
}
protected void removeTopic(org.apache.activemq.command.ActiveMQTopic) throws java.lang.Exception
{
org.apache.activemq.command.ActiveMQTopic v;
org.apache.camel.CamelContext v;
org.apache.activemq.camel.component.CamelEndpointLoader v;
java.lang.String v;
v := @this: org.apache.activemq.camel.component.CamelEndpointLoader;
v := @parameter: org.apache.activemq.command.ActiveMQTopic;
v = virtualinvoke v.<org.apache.activemq.camel.component.CamelEndpointLoader: java.lang.String getTopicUri(org.apache.activemq.command.ActiveMQTopic)>(v);
v = v.<org.apache.activemq.camel.component.CamelEndpointLoader: org.apache.camel.CamelContext camelContext>;
interfaceinvoke v.<org.apache.camel.CamelContext: java.util.Collection removeEndpoints(java.lang.String)>(v);
return;
}
static void <clinit>()
{
org.slf4j.Logger v;
v = staticinvoke <org.slf4j.LoggerFactory: org.slf4j.Logger getLogger(java.lang.Class)>(class "Lorg/apache/activemq/camel/component/CamelEndpointLoader;");
<org.apache.activemq.camel.component.CamelEndpointLoader: org.slf4j.Logger LOG> = v;
return;
}
}