Author: jstrachan
Date: Fri May 4 09:26:06 2007
New Revision: 535318
URL: http://svn.apache.org/viewvc?view=rev&rev=535318
Log:
added some annotations for POJO injection
Added:
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/EndpointInject.java
(with props)
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/MessageDriven.java
(with props)
Added:
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/EndpointInject.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/EndpointInject.java?view=auto&rev=535318
==============================================================================
---
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/EndpointInject.java
(added)
+++
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/EndpointInject.java
Fri May 4 09:26:06 2007
@@ -0,0 +1,38 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+import java.lang.annotation.ElementType;
+
+/**
+ * Used to indicate an injection point of an [EMAIL PROTECTED] Endpoint} or
[EMAIL PROTECTED] Producer} in a POJO.
+ * Either a <a href="http://activemq.apache.org/camel/uris.html">URI</a> for
an endpoint
+ * should be configured, or a name of an endpoint
+ * which refers to a Spring bean name in your Spring ApplicationContext.
+ *
+ * @version $Revision: 523756 $
+ */
[EMAIL PROTECTED](RetentionPolicy.RUNTIME)
[EMAIL PROTECTED]({ElementType.FIELD, ElementType.METHOD,
ElementType.CONSTRUCTOR})
+public @interface EndpointInject {
+ String uri() default "";
+ String name() default "";
+}
Propchange:
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/EndpointInject.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/MessageDriven.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/MessageDriven.java?view=auto&rev=535318
==============================================================================
---
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/MessageDriven.java
(added)
+++
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/MessageDriven.java
Fri May 4 09:26:06 2007
@@ -0,0 +1,40 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+import java.lang.annotation.ElementType;
+
+/**
+ * Used to indicate a method on a POJO which is used as a [EMAIL PROTECTED]
Consumer} of [EMAIL PROTECTED] Exchange} instances to process
+ * [EMAIL PROTECTED] Message} instances.
+ *
+ * Either a <a href="http://activemq.apache.org/camel/uris.html">URI</a> for
an endpoint
+ * should be configured, or a name of an endpoint
+ * which refers to a Spring bean name in your Spring ApplicationContext.
+ *
+ * @version $Revision: 523756 $
+ */
[EMAIL PROTECTED](RetentionPolicy.RUNTIME)
[EMAIL PROTECTED]({ElementType.FIELD, ElementType.METHOD,
ElementType.CONSTRUCTOR})
+public @interface MessageDriven {
+ String uri() default "";
+ String name() default "";
+}
Propchange:
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/MessageDriven.java
------------------------------------------------------------------------------
svn:eol-style = native