Skip to content

Instantly share code, notes, and snippets.

View mathieuancelin's full-sized avatar

Mathieu ANCELIN mathieuancelin

View GitHub Profile
package com.sample.ws;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;
import org.apache.cxf.endpoint.Client;
import org.apache.cxf.service.model.MessagePartInfo;
import org.apache.cxf.service.model.OperationInfo;
@mathieuancelin
mathieuancelin / CurrentBundleSingletonProvider.java
Created March 25, 2011 10:51
The custom SingletonProvider using the current class context
package org.jboss.weld.environment.osgi.integration;
import java.util.Hashtable;
import java.util.Map;
import org.jboss.weld.bean.proxy.ProxyMethodHandler;
import org.jboss.weld.bootstrap.api.Singleton;
import org.jboss.weld.bootstrap.api.SingletonProvider;
import org.osgi.framework.Bundle;
import org.osgi.framework.FrameworkUtil;