Permalink
Browse files

[maven-release-plugin] copy for tag camel-2.9.0

git-svn-id: https://svn.apache.org/repos/asf/camel/tags/camel-2.9.0@1225049 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
2 parents 1399080 + a1eb5c4 commit 4a0282b413db910b4a5ab6c9f9c65a1c8d5b8c04 @hzbarcea hzbarcea committed Dec 27, 2011
Showing 397 changed files with 2,153 additions and 2,226 deletions.
@@ -18,7 +18,9 @@
package org.apache.camel;
/**
- * An exception thrown for authorization errors occurring in a Camel exchange.
+ * An exception thrown for either authentication or authorization errors occurring
+ * in a Camel exchange. Intended to be used when a user is denied an action and
+ * Camel should not process the message as a result.
*
* @version
*/
@@ -17,9 +17,14 @@
package org.apache.camel;
/**
- * Used for defining if a given class is singleton or not.
- * If the class is a Singleton, then a single instance will be shared. Because the class is shared, it
- * should be treated as an immutable and be thread safe.
+ * Used for defining if a given class is singleton or not. If the class is a singleton,
+ * then a single instance will be shared (and hence should be treated as immutable and
+ * be used in a thread-safe manner.)
+ *
+ * This interface is not implemented as a marker interface (i.e., it's necessary to read
+ * isSingleton() instead of instanceof(IsSingleton)). This allows for subclasses to have
+ * a singleton status different from a parent and for objects to have this value dynamically
+ * changed.
*
* @version
*/
@@ -33,9 +33,9 @@
public interface MultipleConsumersSupport {
/**
- * Is multiple consumers supported?
+ * Are multiple consumers supported?
*
- * @return <tt>true</tt> if multiple consumers is supported
+ * @return <tt>true</tt> if multiple consumers are supported
*/
boolean isMultipleConsumersSupported();
}
@@ -19,7 +19,7 @@
import org.apache.camel.Exchange;
/**
- * A counter that gathers performance metrics when {@link org.apache.camel.Exchange} are routed in Camel.
+ * A counter that gathers performance metrics when an {@link org.apache.camel.Exchange} is routed in Camel.
*
* @version
*/
@@ -29,7 +29,7 @@
* Executed when an {@link org.apache.camel.Exchange} is complete.
*
* @param exchange the exchange
- * @param time the time it took in millis to complete it
+ * @param time the time it took in millis to complete
*/
void completedExchange(Exchange exchange, long time);
@@ -41,20 +41,20 @@
void failedExchange(Exchange exchange);
/**
- * Is statistics enabled.
+ * Are statistics enabled?
* <p/>
* They can be enabled and disabled at runtime
*
- * @return whether statistics is enabled or not
+ * @return whether statistics are enabled or not
*/
boolean isStatisticsEnabled();
/**
- * Sets whether statistics is enabled.
+ * Sets whether statistics are enabled.
* <p/>
* They can be enabled and disabled at runtime
*
- * @param statisticsEnabled whether statistics is enabled or not
+ * @param statisticsEnabled whether statistics are enabled or not
*/
void setStatisticsEnabled(boolean statisticsEnabled);
@@ -24,7 +24,7 @@
public interface ManagedCamelContextMBean {
- @ManagedAttribute(description = "Camel id")
+ @ManagedAttribute(description = "Camel ID")
String getCamelId();
@ManagedAttribute(description = "Camel Version")
@@ -118,7 +118,7 @@
* @return <tt>true</tt> if a new endpoint was created, <tt>false</tt> if the endpoint already existed
* @throws Exception is thrown if error occurred
*/
- @ManagedOperation(description = "Creates the endpoint by the given uri")
+ @ManagedOperation(description = "Creates the endpoint by the given URI")
boolean createEndpoint(String uri) throws Exception;
/**
@@ -26,7 +26,7 @@
@ManagedAttribute(description = "Component State")
String getState();
- @ManagedAttribute(description = "Camel id")
+ @ManagedAttribute(description = "Camel ID")
String getCamelId();
}
@@ -20,7 +20,7 @@
public interface ManagedConsumerMBean extends ManagedServiceMBean {
- @ManagedAttribute(description = "Endpoint Uri")
+ @ManagedAttribute(description = "Endpoint URI")
String getEndpointUri();
@ManagedAttribute(description = "Current number of inflight Exchanges")
@@ -20,10 +20,10 @@
public interface ManagedEndpointMBean {
- @ManagedAttribute(description = "Camel id")
+ @ManagedAttribute(description = "Camel ID")
String getCamelId();
- @ManagedAttribute(description = "Endpoint Uri")
+ @ManagedAttribute(description = "Endpoint URI")
String getEndpointUri();
@ManagedAttribute(description = "Singleton")
@@ -20,7 +20,7 @@
public interface ManagedErrorHandlerMBean {
- @ManagedAttribute(description = "Camel id")
+ @ManagedAttribute(description = "Camel ID")
String getCamelId();
@ManagedAttribute(description = "Does the error handler support redelivery")
@@ -24,13 +24,13 @@
@ManagedAttribute(description = "Processor State")
String getState();
- @ManagedAttribute(description = "Camel id")
+ @ManagedAttribute(description = "Camel ID")
String getCamelId();
- @ManagedAttribute(description = "Route id")
+ @ManagedAttribute(description = "Route ID")
String getRouteId();
- @ManagedAttribute(description = "Processor id")
+ @ManagedAttribute(description = "Processor ID")
String getProcessorId();
@ManagedOperation(description = "Start Processor")
@@ -20,7 +20,7 @@
public interface ManagedProducerMBean extends ManagedServiceMBean {
- @ManagedAttribute(description = "Endpoint Uri")
+ @ManagedAttribute(description = "Endpoint URI")
String getEndpointUri();
@ManagedAttribute(description = "Singleton")
@@ -21,13 +21,13 @@
public interface ManagedRouteMBean extends ManagedPerformanceCounterMBean {
- @ManagedAttribute(description = "Route id")
+ @ManagedAttribute(description = "Route ID")
String getRouteId();
@ManagedAttribute(description = "Route Description")
String getDescription();
- @ManagedAttribute(description = "Route Endpoint Uri")
+ @ManagedAttribute(description = "Route Endpoint URI")
String getEndpointUri();
@ManagedAttribute(description = "Route State")
@@ -36,7 +36,7 @@
@ManagedAttribute(description = "Current number of inflight Exchanges")
Integer getInflightExchanges();
- @ManagedAttribute(description = "Camel id")
+ @ManagedAttribute(description = "Camel ID")
String getCamelId();
@ManagedAttribute(description = "Tracing")
@@ -20,10 +20,10 @@
public interface ManagedSendProcessorMBean extends ManagedProcessorMBean {
- @ManagedAttribute(description = "Destination as Endpoint Uri")
+ @ManagedAttribute(description = "Destination as Endpoint URI")
String getDestination();
- @ManagedAttribute(description = "Destination as Endpoint Uri")
+ @ManagedAttribute(description = "Destination as Endpoint URI")
void setDestination(String uri);
@ManagedAttribute(description = "Message Exchange Pattern")
@@ -24,10 +24,10 @@
@ManagedAttribute(description = "Service State")
String getState();
- @ManagedAttribute(description = "Camel id")
+ @ManagedAttribute(description = "Camel ID")
String getCamelId();
- @ManagedAttribute(description = "Route id")
+ @ManagedAttribute(description = "Route ID")
String getRouteId();
@ManagedOperation(description = "Start Service")
@@ -21,16 +21,16 @@
public interface ManagedThreadPoolMBean {
- @ManagedAttribute(description = "Thread Pool id")
+ @ManagedAttribute(description = "Thread Pool ID")
String getId();
- @ManagedAttribute(description = "Id of source for creating Thread Pool")
+ @ManagedAttribute(description = "ID of source for creating Thread Pool")
String getSourceId();
- @ManagedAttribute(description = "Route id for the source, which created the Thread Pool")
+ @ManagedAttribute(description = "Route ID for the source, which created the Thread Pool")
String getRouteId();
- @ManagedAttribute(description = "Id of the thread pool profile which this pool is based upon")
+ @ManagedAttribute(description = "ID of the thread pool profile which this pool is based upon")
String getThreadPoolProfileId();
@ManagedAttribute(description = "Core pool size")
@@ -26,16 +26,16 @@
@ManagedAttribute(description = "Tracer enabled")
void setEnabled(boolean enabled);
- @ManagedAttribute(description = "Additional destination Uri")
+ @ManagedAttribute(description = "Additional destination URI")
String getDestinationUri();
- @ManagedAttribute(description = "Additional destination Uri")
+ @ManagedAttribute(description = "Additional destination URI")
void setDestinationUri(String uri);
@ManagedAttribute(description = "Logging Name")
String getLogName();
- @ManagedAttribute(description = "Using Jpa")
+ @ManagedAttribute(description = "Using JPA")
boolean getUseJpa();
@ManagedAttribute(description = "Logging Name")
@@ -101,10 +101,10 @@
@ManagedAttribute(description = "Formatter show breadcrumb")
void setFormatterShowBreadCrumb(boolean showBreadCrumb);
- @ManagedAttribute(description = "Formatter show exchange id")
+ @ManagedAttribute(description = "Formatter show exchange ID")
boolean getFormatterShowExchangeId();
- @ManagedAttribute(description = "Formatter show exchange id")
+ @ManagedAttribute(description = "Formatter show exchange ID")
void setFormatterShowExchangeId(boolean showExchangeId);
@ManagedAttribute(description = "Formatter show headers")
@@ -143,10 +143,10 @@
@ManagedAttribute(description = "Formatter show exception")
void setFormatterShowException(boolean showException);
- @ManagedAttribute(description = "Formatter show route id")
+ @ManagedAttribute(description = "Formatter show route ID")
boolean getFormatterShowRouteId();
- @ManagedAttribute(description = "Formatter show route id")
+ @ManagedAttribute(description = "Formatter show route ID")
void setFormatterShowRouteId(boolean showRouteId);
@ManagedAttribute(description = "Formatter breadcrumb length")
@@ -155,10 +155,10 @@
@ManagedAttribute(description = "Formatter breadcrumb length")
void setFormatterBreadCrumbLength(int breadCrumbLength);
- @ManagedAttribute(description = "Formatter show short exchange id")
+ @ManagedAttribute(description = "Formatter show short exchange ID")
boolean getFormatterShowShortExchangeId();
- @ManagedAttribute(description = "Formatter show short exchange id")
+ @ManagedAttribute(description = "Formatter show short exchange ID")
void setFormatterShowShortExchangeId(boolean showShortExchangeId);
@ManagedAttribute(description = "Formatter node length")
@@ -173,10 +173,10 @@
@ManagedAttribute(description = "Formatter max chars")
void setFormatterMaxChars(int maxChars);
- @ManagedAttribute(description = "Should trace events be sent as jmx notifications")
+ @ManagedAttribute(description = "Should trace events be sent as JMX notifications")
boolean isJmxTraceNotifications();
- @ManagedAttribute(description = "Should trace events be sent as jmx notifications")
+ @ManagedAttribute(description = "Should trace events be sent as JMX notifications")
void setJmxTraceNotifications(boolean jmxTraceNotifications);
@ManagedAttribute(description = "Maximum size of a message body for trace notification")
@@ -19,7 +19,8 @@
</head>
<body>
-Service provider interfaces for management. These help making components management aware or to implement own management strategies
+Service provider interfaces for management. These help make components management-aware and
+also allow components to implement their own management strategies.
</body>
</html>
@@ -219,7 +219,7 @@ public Object evaluate(Exchange exchange) {
Message out = exchange.getOut();
Object header = out.getHeader(headerName);
if (header == null) {
- // lets try the exchange header
+ // let's try the exchange header
header = exchange.getProperty(headerName);
}
return header;
@@ -75,7 +75,7 @@ public Namespaces add(String prefix, String uri) {
}
public Namespaces add(Element element) {
- // lets set the parent first in case we overload a prefix here
+ // let's set the parent first in case we overload a prefix here
Node parentNode = element.getParentNode();
if (parentNode instanceof org.w3c.dom.Element) {
add((Element) parentNode);
@@ -93,7 +93,7 @@
// For some reason the default expression of "a/b" on a document such as
// <a><b>1</b><b>2</b></a>
// will evaluate as just "1" by default which is bizarre. So by default
- // lets assume XPath expressions result in nodesets.
+ // let's assume XPath expressions result in nodesets.
private Class<?> resultType;
private QName resultQName = XPathConstants.NODESET;
private String objectModelUri;
@@ -697,7 +697,7 @@ protected synchronized XPathExpression createXPathExpression() throws XPathExpre
}
/**
- * Lets populate a number of standard prefixes if they are not already there
+ * Populate a number of standard prefixes if they are not already there
*/
protected void populateDefaultNamespaces(DefaultNamespaceContext context) {
setNamespaceIfNotPresent(context, "in", IN_NAMESPACE);
@@ -802,7 +802,7 @@ protected Object getDocument(Exchange exchange, Object body) {
answer = body;
}
- // lets try coerce some common types into something JAXP can deal with
+ // let's try coercing some common types into something JAXP can work with
if (answer instanceof WrappedFile) {
// special for files so we can work with them out of the box
InputStream is = exchange.getContext().getTypeConverter().convertTo(InputStream.class, answer);
@@ -103,7 +103,7 @@ public void process(Exchange exchange) throws Exception {
ResultHandler resultHandler = resultHandlerFactory.createResult(exchange);
Result result = resultHandler.getResult();
- // lets copy the headers before we invoke the transform in case they modify them
+ // let's copy the headers before we invoke the transform in case they modify them
Message out = exchange.getOut();
out.copyFrom(exchange.getIn());
Oops, something went wrong.

0 comments on commit 4a0282b

Please sign in to comment.