Package net.paoding.rose.scanning

Examples of net.paoding.rose.scanning.LoadScope


     * </pre>
     *
     * @param load
     */
    public void setLoad(String load) {
        this.load = new LoadScope(load, "controllers");
    }
View Full Code Here


     * </pre>
     *
     * @param load
     */
    public void setLoad(String load) {
        this.load = new LoadScope(load, "controllers");
    }
View Full Code Here

     * </pre>
     *
     * @param load
     */
    public void setLoad(String load) {
        this.load = new LoadScope(load, "controllers");
    }
View Full Code Here

     * </pre>
     *
     * @param load
     */
    public void setLoad(String load) {
        this.load = new LoadScope(load, "controllers");
    }
View Full Code Here

import net.paoding.rose.scanning.LoadScope;

public class LoadScopeTest extends TestCase {

    public void test1() {
        LoadScope scope = new LoadScope("controllers=com.xiaonei.game", "controllers");
        assertNull(scope.getScope("applicationContext"));
        assertTrue(ArrayUtils.isEquals(new String[] { "com.xiaonei.game", "net.paoding.rose" },
                scope.getScope("controllers")));
    }
View Full Code Here

        assertTrue(ArrayUtils.isEquals(new String[] { "com.xiaonei.game", "net.paoding.rose" },
                scope.getScope("controllers")));
    }

    public void test2() {
        LoadScope scope = new LoadScope("controllers=com.xiaonei.game,net.paoding.rose.web",
                "controllers");
        assertNull(scope.getScope("applicationContext"));
        assertTrue(ArrayUtils.isEquals(new String[] { "com.xiaonei.game", "net.paoding.rose.web",
                "net.paoding.rose" }, scope.getScope("controllers")));
    }
View Full Code Here

        assertTrue(ArrayUtils.isEquals(new String[] { "com.xiaonei.game", "net.paoding.rose.web",
                "net.paoding.rose" }, scope.getScope("controllers")));
    }

    public void test3() {
        LoadScope scope = new LoadScope(
                "com.xiaonei.game;applicationContext=com.xiaonei.abc", "controllers");
        assertNotNull(scope.getScope("applicationContext"));
        assertTrue(ArrayUtils.isEquals(new String[] { "com.xiaonei.game", "net.paoding.rose" },
                scope.getScope("controllers")));
        assertTrue(ArrayUtils.isEquals(new String[] { "com.xiaonei.abc", "net.paoding.rose" },
                scope.getScope("applicationContext")));
    }
View Full Code Here

    public RoseWebAppContext(ServletContext servletContext, boolean refresh) {
        this(servletContext, "", refresh);
    }

    public RoseWebAppContext(ServletContext servletContext, String scope, boolean refresh) {
        this(servletContext, new LoadScope(scope, "controllers"), refresh);
    }
View Full Code Here

    public RoseAppContext() {
        this("", true);
    }

    public RoseAppContext(String scope, boolean refresh) {
        this(new LoadScope(scope, "applicationContext"), refresh);
    }
View Full Code Here

TOP

Related Classes of net.paoding.rose.scanning.LoadScope

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.