Package org.openengsb.core.util

Examples of org.openengsb.core.util.DefaultOsgiUtilsService


        }
    }

    public void setBundleContext(BundleContext bundleContext) {
        this.bundleContext = bundleContext;
        utilsService = new DefaultOsgiUtilsService(bundleContext);
    }
View Full Code Here


public class Activator implements BundleActivator {

    @Override
    public void start(BundleContext context) throws Exception {
        OsgiHelper.setUtilsService(new DefaultOsgiUtilsService(context));
    }
View Full Code Here

*/
public class TransformationOperationLoaderImpl implements TransformationOperationLoader {
    private OsgiUtilsService service;

    public TransformationOperationLoaderImpl(BundleContext context) {
        service = new DefaultOsgiUtilsService(context);
    }
View Full Code Here

        List<OpenEngSBVersionService> versionService = new ArrayList<OpenEngSBVersionService>();
        context.putBean("openengsbVersionService", versionService);
        DefaultWiringService defaultWiringService = new DefaultWiringService();
        defaultWiringService.setBundleContext(bundleContext);
        context.putBean("wiringService", defaultWiringService);
        serviceUtils = new DefaultOsgiUtilsService(bundleContext);
        context.putBean("osgiUtilsService", serviceUtils);
        ConnectorRegistrationManager registrationManager = new ConnectorRegistrationManager(bundleContext,
                mock(TransformationEngine.class), new ForwardMethodInterceptor(), new SecurityAttributeProviderImpl());
        XLinkConnectorManagerImpl serviceManager = new XLinkConnectorManagerImpl();
        serviceManager.setRegistrationManager(registrationManager);
View Full Code Here

        incomingPort = new JMSIncomingPort();
        incomingPort.setFactory(jmsTemplateFactory);
        incomingPort.setConnectionFactory(connectionFactory);
        RequestHandlerImpl requestHandlerImpl = new RequestHandlerImpl();
        requestHandlerImpl.setUtilsService(new DefaultOsgiUtilsService(bundleContext));
        handler = requestHandlerImpl;

        TestInterface mock2 = mock(TestInterface.class);
        registerServiceViaId(mock2, "test", TestInterface.class);
        when(mock2.method(anyString(), anyInt(), any(TestClass.class))).thenReturn(new TestClass("test"));
View Full Code Here

        factory.setFilters(Arrays.asList(
            EncryptedJsonMessageMarshaller.class,
            cipherFactory,
            JsonSecureRequestMarshallerFilter.class,
            MessageVerifierFilter.class,
            new MessageAuthenticatorFilterFactory(new DefaultOsgiUtilsService(bundleContext), new ShiroContext()),
            new RequestMapperFilter(handler)));
        FilterChain secureChain = factory.create();
        return secureChain;
    }
View Full Code Here

    private ConnectorManagerImpl createServiceManagerMock() {
        ConnectorManagerImpl serviceManagerImpl = new ConnectorManagerImpl();
        ConnectorRegistrationManager registrationManager = new ConnectorRegistrationManager(bundleContext,
                mock(TransformationEngine.class), new ForwardMethodInterceptor(), new SecurityAttributeProviderImpl());
        serviceUtils = new DefaultOsgiUtilsService(bundleContext);
        serviceManagerImpl.setRegistrationManager(registrationManager);
        serviceManagerImpl.setConfigPersistence(configPersistence);
        serviceManager = serviceManagerImpl;
        return serviceManagerImpl;
    }
View Full Code Here

                return null;
            }
        }).when(outgoingPort).send(any(MethodCallMessage.class));

        DefaultOutgoingPortUtilService outgoingPortUtilService =
            new DefaultOutgoingPortUtilService(new DefaultOsgiUtilsService(bundleContext));
        registerService(outgoingPortUtilService, new Hashtable<String, Object>(), OutgoingPortUtilService.class);
    }
View Full Code Here

        registerService(outgoingPortUtilService, new Hashtable<String, Object>(), OutgoingPortUtilService.class);
    }

    private RequestHandler getRequestHandler() {
        RequestHandlerImpl requestHandlerImpl = new RequestHandlerImpl();
        requestHandlerImpl.setUtilsService(new DefaultOsgiUtilsService(bundleContext));
        return requestHandlerImpl;
    }
View Full Code Here

    public ServicesHelper() {
    }

    public void init() {
        osgiUtilsService = new DefaultOsgiUtilsService();
        osgiUtilsService.setBundleContext(bundleContext);
        serviceManager = osgiUtilsService.getService(ConnectorManager.class);
        CommandProcessor commandProcessor =
            osgiUtilsService.getService(org.apache.felix.service.command.CommandProcessor.class);
        CommandSession commandSession = commandProcessor.createSession(System.in, System.err, System.out);
View Full Code Here

TOP

Related Classes of org.openengsb.core.util.DefaultOsgiUtilsService

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.