Package org.apache.karaf.deployer.spring

Examples of org.apache.karaf.deployer.spring.SpringDeploymentListener


import org.apache.karaf.deployer.spring.SpringTransformer;

public class SpringDeploymentListenerTest extends TestCase {

    public void testPackagesExtraction() throws Exception {
        SpringDeploymentListener l = new SpringDeploymentListener();
        File f = new File(getClass().getClassLoader().getResource("test.xml").toURI());
        Set<String> pkgs = SpringTransformer.analyze(new DOMSource(SpringTransformer.parse(f.toURL())));
        assertNotNull(pkgs);
        assertEquals(2, pkgs.size());
        Iterator<String> it = pkgs.iterator();
View Full Code Here


    protected void doStart() throws Exception {
        Hashtable<String, Object> props = new Hashtable<String, Object>();
        props.put("url.handler.protocol", "spring");
        register(URLStreamHandlerService.class, new SpringURLHandler(), props);
        register(new Class[] { ArtifactUrlTransformer.class, ArtifactListener.class },
                 new SpringDeploymentListener());
    }
View Full Code Here

TOP

Related Classes of org.apache.karaf.deployer.spring.SpringDeploymentListener

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.