You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2010/08/11 15:49:50 UTC
svn commit: r984407 -
/camel/trunk/camel-core/src/main/java/org/apache/camel/Component.java
Author: davsclaus
Date: Wed Aug 11 13:49:50 2010
New Revision: 984407
URL: http://svn.apache.org/viewvc?rev=984407&view=rev
Log:
Component is CamelContextAware
Modified:
camel/trunk/camel-core/src/main/java/org/apache/camel/Component.java
Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/Component.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/Component.java?rev=984407&r1=984406&r2=984407&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/Component.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/Component.java Wed Aug 11 13:49:50 2010
@@ -22,20 +22,7 @@ package org.apache.camel;
*
* @version $Revision$
*/
-public interface Component {
-
- /**
- * Returns the context
- *
- * @return the context of this component
- */
- CamelContext getCamelContext();
-
- /**
- * The {@link CamelContext} is injected into the component when it is added
- * to it
- */
- void setCamelContext(CamelContext context);
+public interface Component extends CamelContextAware {
/**
* Attempt to resolve an endpoint for the given URI if the component is
@@ -44,6 +31,7 @@ public interface Component {
* @param uri the URI to create
* @return a newly created endpoint or null if this component cannot create
* instances of the given uri
+ * @throws Exception is thrown if error creating the endpoint
*/
Endpoint createEndpoint(String uri) throws Exception;