Package org.libreplan.business

Examples of org.libreplan.business.BootstrapOrder


            public int compare(IDataBootstrap o1, IDataBootstrap o2) {
                return getOrderingValue(o1) - getOrderingValue(o2);
            }

            private int getOrderingValue(IDataBootstrap dataBootstrap) {
                BootstrapOrder annotation = searchAnnotationFor(dataBootstrap);
                return annotation == null ? 0 : annotation.value();
            }

            private BootstrapOrder searchAnnotationFor(
                    IDataBootstrap dataBootstrap) {
                Class<? extends IDataBootstrap> klass = dataBootstrap
                        .getClass();
                BootstrapOrder result = klass
                        .getAnnotation(BootstrapOrder.class);
                if (result == null && dataBootstrap instanceof Advised) {
                    return searchInProxiedClass((Advised) dataBootstrap);
                }
                return result;
View Full Code Here

TOP

Related Classes of org.libreplan.business.BootstrapOrder

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.