Examples of BundleExtUrlPostProcessor


Examples of org.apache.servicemix.nmr.spring.BundleExtUrlPostProcessor

public class BundleExtTest extends TestCase {

    public void test() {
        final long bundleId = 32;
        BundleExtUrlPostProcessor processor = new BundleExtUrlPostProcessor();
        processor.setBundleContext((BundleContext) Proxy.newProxyInstance(getClass().getClassLoader(),
                               new Class[] { BundleContext.class },
                               new InvocationHandler() {
            public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
                if ("getBundle".equals(method.getName())) {
                    return (Bundle) Proxy.newProxyInstance(getClass().getClassLoader(),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.