Package org.apache.camel.impl

Examples of org.apache.camel.impl.ServiceSupport


                return true;
            } else {
                return false;
            }
        } else if (service instanceof ServiceSupport) {
            ServiceSupport ss = (ServiceSupport) service;
            if (ss.getStatus().isStoppable()) {
                stopServices(service);
                return true;
            } else {
                return false;
            }
View Full Code Here


        return camelContext.getName();
    }

    public String getVersion() {
        if (camelContext instanceof ServiceSupport) {
            ServiceSupport serviceSupport = (ServiceSupport) camelContext;
            return serviceSupport.getVersion();
        }
        return null;
    }
View Full Code Here

        return camelContext.getName();
    }

    public String getVersion() {
        if (camelContext instanceof ServiceSupport) {
            ServiceSupport serviceSupport = (ServiceSupport) camelContext;
            return serviceSupport.getVersion();
        }
        return null;
    }
View Full Code Here

        this.route = route;
    }

    private static boolean isCamelStopping(CamelContext context) {
        if (context instanceof ServiceSupport) {
            ServiceSupport ss = (ServiceSupport) context;
            return ss.isStopping() || ss.isStopped();
        }
        return false;
    }
View Full Code Here

        return false;
    }

    private boolean isRoutePolicyRunAllowed() {
        if (routePolicy instanceof ServiceSupport) {
            ServiceSupport ss = (ServiceSupport) routePolicy;
            return ss.isRunAllowed();
        }
        return true;
    }
View Full Code Here

                return true;
            } else {
                return false;
            }
        } else if (service instanceof ServiceSupport) {
            ServiceSupport ss = (ServiceSupport) service;
            if (ss.getStatus().isStartable()) {
                startService(service);
                return true;
            } else {
                return false;
            }
View Full Code Here

                return true;
            } else {
                return false;
            }
        } else if (service instanceof ServiceSupport) {
            ServiceSupport ss = (ServiceSupport) service;
            if (ss.getStatus().isStoppable()) {
                stopServices(service);
                return true;
            } else {
                return false;
            }
View Full Code Here

        return camelContext.getName();
    }

    public String getVersion() {
        if (camelContext instanceof ServiceSupport) {
            ServiceSupport serviceSupport = (ServiceSupport) camelContext;
            return serviceSupport.getVersion();
        }
        return null;
    }
View Full Code Here

     * @param policy the policy
     * @return <tt>true</tt> to run
     */
    protected boolean isRoutePolicyRunAllowed(RoutePolicy policy) {
        if (policy instanceof ServiceSupport) {
            ServiceSupport ss = (ServiceSupport) policy;
            return ss.isRunAllowed();
        }
        return true;
    }
View Full Code Here

        return true;
    }

    private static boolean isCamelStopping(CamelContext context) {
        if (context instanceof ServiceSupport) {
            ServiceSupport ss = (ServiceSupport) context;
            return ss.isStopping() || ss.isStopped();
        }
        return false;
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.impl.ServiceSupport

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.