Package org.apache.cxf.feature

Examples of org.apache.cxf.feature.Feature


        }
        return null;
    }

    private void addAddressingFeature(WSAddressingFeature a) {
        Feature f = getWSAddressingFeature();
        if (f == null) {
            features.add(a);
        }
    }
View Full Code Here


            features.add(a);
        }
    }

    private void removeAddressingFeature() {
        Feature f = getWSAddressingFeature();
        if (f != null) {
            features.remove(f);
        }
    }   
View Full Code Here

            ServiceReference refs[] = context.getServiceReferences(Feature.class.getName(), null);
            if (refs == null) {
                return;
            }
            for (ServiceReference ref : refs) {
                Feature feature = (Feature)context.getService(ref);
                this.getFeatures().add(feature);
            }
        } catch (InvalidSyntaxException e) {
            //ignore
        }
View Full Code Here

            ServiceReference refs[] = context.getServiceReferences(Feature.class.getName(), null);
            if (refs == null) {
                return;
            }
            for (ServiceReference ref : refs) {
                Feature feature = (Feature)context.getService(ref);
                if (feature instanceof AbstractFeature) {
                    this.getFeatures().add((AbstractFeature)feature);
                } else {
                    this.getFeatures().add(new WrappedFeature(feature));
                }
View Full Code Here

        }
        return null;
    }

    private void addAddressingFeature(WSAddressingFeature a) {
        Feature f = getWSAddressingFeature();
        if (f == null) {
            features.add(a);
        }
    }
View Full Code Here

            features.add(a);
        }
    }

    private void removeAddressingFeature() {
        Feature f = getWSAddressingFeature();
        if (f != null) {
            features.remove(f);
        }
    }   
View Full Code Here

   
    private void registerBusFeatures() {
        ServiceReference refs[] = getServiceReferences(defaultContext, Feature.class);
        for (ServiceReference ref : refs) {
            if (!isPrivate(ref) && !isExcluded(ref)) {
                Feature feature = (Feature)defaultContext.getService(ref);
                bus.getFeatures().add(feature);
            }
        }
    }
View Full Code Here

                             Collection<Feature> lst) throws Exception {
        ServiceReference[] svcrefs = createTestServiceReferences(names, restricted);
        EasyMock.expect(bundleContext.getServiceReferences(Feature.class.getName(), null))
            .andReturn(svcrefs);
        for (int i = 0; i < names.length; i++) {
            Feature f = control.createMock(Feature.class);
            EasyMock.expect(bundleContext.getService(svcrefs[i])).andReturn(f).anyTimes();
        }
        EasyMock.expect(bus.getFeatures()).andReturn(lst).anyTimes();
       
    }
View Full Code Here

        }
        return null;
    }

    private void addAddressingFeature(WSAddressingFeature a) {
        Feature f = getWSAddressingFeature();
        if (f == null) {
            features.add(a);
        }
    }
View Full Code Here

            features.add(a);
        }
    }

    private void removeAddressingFeature() {
        Feature f = getWSAddressingFeature();
        if (f != null) {
            features.remove(f);
        }
    }   
View Full Code Here

TOP

Related Classes of org.apache.cxf.feature.Feature

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.