Package org.openengsb.core.util

Examples of org.openengsb.core.util.DefaultOsgiUtilsService


    private TransformationEngine transformationEngine;

    public ConnectorRegistrationManager(BundleContext bundleContext, TransformationEngine transformationEngine,
            MethodInterceptor securityInterceptor, SecurityAttributeProviderImpl attributeStore) {
        this.bundleContext = bundleContext;
        serviceUtils = new DefaultOsgiUtilsService(bundleContext);
        this.transformationEngine = transformationEngine;
        this.securityInterceptor = securityInterceptor;
        this.attributeStore = attributeStore;
    }
View Full Code Here


        return domainProvider;
    }

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

        FilterChainFactory<MethodCallMessage, MethodResultMessage> factory =
            new FilterChainFactory<MethodCallMessage, MethodResultMessage>(MethodCallMessage.class,
                MethodResultMessage.class);
        List<Object> filterFactories = new LinkedList<Object>();
        filterFactories.add(MessageVerifierFilter.class);
        filterFactories.add(new MessageAuthenticatorFilterFactory(new DefaultOsgiUtilsService(bundleContext),
                new ShiroContext()));
        filterFactories.add(new RequestMapperFilter(requestHandler));
        factory.setFilters(filterFactories);
        factory.create();
View Full Code Here

        return utilsService;
    }

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

        waitForSiteToBeAvailable(wsdlUrl, MAX_SLEEP_TIME_IN_SECONDS);
    }

    @Test
    public void testWsPort_shouldBeExportedWithCorrectId() throws Exception {
        DefaultOsgiUtilsService utilsService = new DefaultOsgiUtilsService(getBundleContext());
        OutgoingPort serviceWithId = utilsService.getServiceWithId(OutgoingPort.class, "ws-json", 60000);
        assertNotNull(serviceWithId);
    }
View Full Code Here

        compositeConnectorProvider.setBundleContext(bundleContext);
        ConnectorInstanceFactory factory = compositeConnectorProvider.createFactory(provider);
        authManager = (AuthenticationDomain) factory.createNewInstance("authProvider");

        DefaultAuthenticationProviderStrategy strategy = new DefaultAuthenticationProviderStrategy();
        strategy.setUtilsService(new DefaultOsgiUtilsService(bundleContext));

        Hashtable<String, Object> props = new Hashtable<String, Object>();
        props.put("composite.strategy.name", "authManagerStrategy");
        registerService(strategy, props, CompositeConnectorStrategy.class);
View Full Code Here

    protected String getOpenwirePort() throws Exception {
        return getConfigProperty("org.openengsb.infrastructure.jms", "openwire");
    }
   
    protected DefaultOsgiUtilsService getOsgiUtils() throws Exception {
        return new DefaultOsgiUtilsService(getBundleContext());
    }
View Full Code Here

        serviceMap.get(pid).unregister();
    }

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

        return builder.build();
    }

    @Override
    public ConnectorInstanceFactory createFactory(DomainProvider provider) {
        return new CompositeConnectorFactory(provider, new DefaultOsgiUtilsService(bundleContext));
    }
View Full Code Here

    private OutgoingPortUtilService callrouter;
    private ProxyConnectorRegistryImpl connectorRegistry;

    @Before
    public void setUp() throws Exception {
        serviceUtils = new DefaultOsgiUtilsService(bundleContext);
        createDomainProviderMock(NullDomain.class, "test");
        createFactoryMock("testc", NullDomainImpl.class, "test");
        callrouter = mock(OutgoingPortUtilService.class);
        MethodResult result = MethodResult.newVoidResult();
        when(callrouter.sendMethodCallWithResult(anyString(), anyString(), any(MethodCall.class))).thenReturn(result);
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.