Examples of IntentMap


Examples of org.apache.cxf.dosgi.dsw.qos.IntentMap

   
    public void testProvidedIntents() {
        Map<String, Object> masterIntents = new HashMap<String, Object>();
        masterIntents.put("A", "Provided");
        masterIntents.put("B", "PROVIDED");
        final IntentMap masterIntentMap = new IntentMap();
        masterIntentMap.setIntents(masterIntents);       
        final IntentMap appIntentMap = new IntentMap();
        appIntentMap.setIntents(new HashMap<String, Object>());

        IMocksControl control = EasyMock.createNiceControl();
        final BundleContext dswContext = control.createMock(BundleContext.class);
        final BundleContext callingContext = control.createMock(BundleContext.class);       
        List<AbstractFeature> features = new ArrayList<AbstractFeature>();
View Full Code Here

Examples of org.apache.cxf.dosgi.dsw.qos.IntentMap

        BundleContext bc = getMockBundleContext();
       
        Activator a = new Activator() {
            @Override
            IntentMap getIntentMap() {
                IntentMap intentMap = new IntentMap();
                intentMap.setIntents(new HashMap<String, Object>());
                return intentMap;               
            }           
        };  
       
        assertNull("Precondition failed", a.dpService);
View Full Code Here

Examples of org.apache.cxf.dosgi.dsw.qos.IntentMap

            IntentMap getIntentMap() {
                Map<String, Object> intents = new HashMap<String, Object>();
                intents.put("A", new AbstractFeature() {});
                intents.put("B", "PROVIDED");

                IntentMap im = new IntentMap();
                im.setIntents(intents);
                return im;
            }           
        };
       
        assertEquals("Precondition failed", 0, services.size());
View Full Code Here

Examples of org.apache.cxf.dosgi.dsw.qos.IntentMap

        control.replay();
       
        Activator a = new Activator() {
            @Override
            IntentMap getIntentMap() {
                IntentMap intentMap = new IntentMap();
                intentMap.setIntents(new HashMap<String, Object>());
                return intentMap;               
            }           
        };  
       
        a.start(bc);
View Full Code Here

Examples of org.apache.cxf.dosgi.dsw.qos.IntentMap

            // Get the intents that need to be supported by the RSA
            String[] requiredIntents = Utils.getAllRequiredIntents(serviceProperties);

            {
                IntentMap im = OsgiUtils.getIntentMap(bctx);

                List<String> unsupportedIntents = new ArrayList<String>();

                for (String ri : requiredIntents) {
                    if (!im.getIntents().containsKey(ri)) {
                        unsupportedIntents.add(ri);
                    }
                }

                if (unsupportedIntents.size() > 0) {
View Full Code Here

Examples of org.apache.cxf.dosgi.dsw.qos.IntentMap

                           AbstractEndpointFactory factory,
                           Map sd) throws IntentUnsatifiedException {
        String[] requestedIntents = getRequestedIntents(sd);
        Set<String> appliedIntents = new HashSet<String>(Arrays.asList(requestedIntents));
       
        IntentMap intentMap = getIntentMap(callingContext);       
        if (useMasterMap()) {
            intentMap = mergeWithMaster(dswContext, intentMap);
        }
        appliedIntents.addAll(reverseLookup(intentMap, PROVIDED_INTENT_VALUE));
       
View Full Code Here

Examples of org.apache.cxf.dosgi.dsw.qos.IntentMap

   
    public void testIntents() throws Exception {
        Map<String, Object> intents = new HashMap<String, Object>();
        intents.put("A", new AbstractFeature() {});
        intents.put("SOAP", new AbstractFeature() {});
        final IntentMap intentMap = new IntentMap();
        intentMap.setIntents(intents);
       
        IMocksControl control = EasyMock.createNiceControl();
        BundleContext dswContext = control.createMock(BundleContext.class);
        BundleContext callingContext = control.createMock(BundleContext.class);       
        List<AbstractFeature> features = new ArrayList<AbstractFeature>();
View Full Code Here

Examples of org.apache.cxf.dosgi.dsw.qos.IntentMap

   
    public void testMultiIntents() {
        Map<String, Object> intents = new HashMap<String, Object>();
        intents.put("confidentiality.message", new AbstractFeature() {});
        intents.put("transactionality", new AbstractFeature() {});
        final IntentMap intentMap = new IntentMap();
        intentMap.setIntents(intents);
       
        IMocksControl control = EasyMock.createNiceControl();
        BundleContext dswContext = control.createMock(BundleContext.class);
        BundleContext callingContext = control.createMock(BundleContext.class);       
        List<AbstractFeature> features = new ArrayList<AbstractFeature>();
View Full Code Here

Examples of org.apache.cxf.dosgi.dsw.qos.IntentMap

    }
   
    public void testFailedIntent() {
        Map<String, Object> intents = new HashMap<String, Object>();
        intents.put("A", new AbstractFeature() {});
        final IntentMap intentMap = new IntentMap();
        intentMap.setIntents(intents);
               
        IMocksControl control = EasyMock.createNiceControl();
        BundleContext dswContext = control.createMock(BundleContext.class);
        BundleContext callingContext = control.createMock(BundleContext.class);       
        List<AbstractFeature> features = new ArrayList<AbstractFeature>();
View Full Code Here

Examples of org.apache.cxf.dosgi.dsw.qos.IntentMap

        intents.put("Prov", "PROVIDED");
        AbstractFeature feat1 = new AbstractFeature() {};
        intents.put("A", feat1);
        intents.put("A_alt", feat1);
        intents.put("B", new AbstractFeature() {});
        final IntentMap intentMap = new IntentMap();
        intentMap.setIntents(intents);
       
        IMocksControl control = EasyMock.createNiceControl();
        BundleContext dswContext = control.createMock(BundleContext.class);
        BundleContext callingContext = control.createMock(BundleContext.class);
        List<AbstractFeature> features = new ArrayList<AbstractFeature>();
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.