This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new c33bc2f camel3 - Polished c33bc2f is described below commit c33bc2f9bcc3ff520ec95c0ddbfb17df5df9fb07 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Mon May 20 12:28:16 2019 +0200 camel3 - Polished --- .../main/java/org/apache/camel/CamelContext.java | 38 ++++++++++++---------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/core/camel-api/src/main/java/org/apache/camel/CamelContext.java b/core/camel-api/src/main/java/org/apache/camel/CamelContext.java index 2862fc6..5712d40 100644 --- a/core/camel-api/src/main/java/org/apache/camel/CamelContext.java +++ b/core/camel-api/src/main/java/org/apache/camel/CamelContext.java @@ -463,7 +463,9 @@ public interface CamelContext extends StatefulService, RuntimeConfiguration { * Returns a new {@link Map} containing all of the endpoints from the {@link org.apache.camel.spi.EndpointRegistry} * * @return map of endpoints + * @deprecated use {@link #getEndpointRegistry()} */ + @Deprecated Map<String, Endpoint> getEndpointMap(); /** @@ -520,28 +522,20 @@ public interface CamelContext extends StatefulService, RuntimeConfiguration { //----------------------------------------------------------------------- /** - * NOTE: experimental api + * Sets a custom {@link RouteController} to use * * @param routeController the route controller */ void setRouteController(RouteController routeController); /** - * NOTE: experimental api + * Gets the {@link RouteController} * - * @return the route controller or null if not set. + * @return the route controller. */ RouteController getRouteController(); /** - * Method to signal to {@link CamelContext} that the process to initialize setup routes is in progress. - * - * @param done <tt>false</tt> to start the process, call again with <tt>true</tt> to signal its done. - * @see #isSetupRoutes() - */ - void setupRoutes(boolean done); - - /** * Sets a custom {@link org.apache.camel.spi.RestConfiguration} * * @param restConfiguration the REST configuration @@ -661,6 +655,14 @@ public interface CamelContext extends StatefulService, RuntimeConfiguration { boolean removeRoute(String routeId) throws Exception; /** + * Method to signal to {@link CamelContext} that the process to initialize setup routes is in progress. + * + * @param done <tt>false</tt> to start the process, call again with <tt>true</tt> to signal its done. + * @see #isSetupRoutes() + */ + void setupRoutes(boolean done); + + /** * Indicates whether current thread is setting up route(s) as part of starting Camel from spring/blueprint. * <p/> * This can be useful to know by {@link LifecycleStrategy} or the likes, in case @@ -802,7 +804,9 @@ public interface CamelContext extends StatefulService, RuntimeConfiguration { * Gets a readonly list with the names of the languages currently registered. * * @return a readonly list with the names of the languages + * @deprecated not in use */ + @Deprecated List<String> getLanguageNames(); /** @@ -1085,18 +1089,18 @@ public interface CamelContext extends StatefulService, RuntimeConfiguration { ClassResolver getClassResolver(); /** - * Returns the package scanning class resolver + * Sets the class resolver to be use * - * @return the resolver + * @param resolver the resolver */ - PackageScanClassResolver getPackageScanClassResolver(); + void setClassResolver(ClassResolver resolver); /** - * Sets the class resolver to be use + * Returns the package scanning class resolver * - * @param resolver the resolver + * @return the resolver */ - void setClassResolver(ClassResolver resolver); + PackageScanClassResolver getPackageScanClassResolver(); /** * Sets the package scanning class resolver to use