Package org.jboss.wsf.spi.serviceref

Examples of org.jboss.wsf.spi.serviceref.ServiceRefFactory


    @Override
    public ManagedReference getReference() {
        final ClassLoader oldCL = WildFlySecurityManager.getCurrentContextClassLoaderPrivileged();
        try {
            WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(classLoader);
            final ServiceRefFactory serviceRefFactory = getServiceRefFactory();
            return new ImmediateManagedReference(serviceRefFactory.newServiceRef(serviceRef));
        } finally {
            WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(oldCL);
        }
    }
View Full Code Here


    public Object getValue() {
        final ClassLoader oldCL = getContextClassLoader();
        try {
            final ClassLoader integrationCL = new DelegateClassLoader(getClassLoader(), classLoader);
            setContextClassLoader(integrationCL);
            final ServiceRefFactory serviceRefFactory = getServiceRefFactory();
            return serviceRefFactory.newServiceRef(serviceRef);
        } finally {
            setContextClassLoader(oldCL);
        }
    }
View Full Code Here

TOP

Related Classes of org.jboss.wsf.spi.serviceref.ServiceRefFactory

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.