Package org.apache.karaf.eik.core.features

Examples of org.apache.karaf.eik.core.features.Feature


        switch (columnIndex) {
        case 0:
            return getText(element);
        case 1:
            if (element instanceof Feature) {
                final Feature feature = (Feature) element;
                return feature.getVersion();
            } else {
                return null;
            }
        default:
            return null;
View Full Code Here


                return features.getParent().getName();
            } else {
                return null;
            }
        } else if (element instanceof Feature) {
            final Feature feature = (Feature) element;
            return feature.getName();
        } else if (element instanceof Bundle) {
            final Bundle bundle = (Bundle) element;
            final String label;
            if (bundle.getBundleUrl().startsWith(MVN_URL_PREFIX)) {
                final String[] bundleComponents = bundle.getBundleUrl().split("/"); //$NON-NLS-1$
View Full Code Here

                final FeatureResolverImpl fr = new FeatureResolverImpl(featuresRepositories);

                final List<Object> checkedFeatures = new ArrayList<Object>();
                for (final String s : bootFeaturesList) {
                    final Feature f = fr.findFeature(s);

                    if (f == null) {
                        // TODO: Set some sort of warning
                        continue;
                    }

                    final Features featuresContainer = (Features) f.getParent();
                    final FeaturesRepository featuresRepository = featuresContainer.getParent();

                    checkedFeatures.add(new AvailableFeature(f, featuresRepository));
                }
View Full Code Here

            return featuresRepository.getFeatures().getFeatures().toArray();
        } else if (parentElement instanceof Features) {
            final Features features = (Features) parentElement;
            return features.getFeatures().toArray();
        } else if (parentElement instanceof Feature) {
            final Feature feature = (Feature) parentElement;
            return ListUtils.union(feature.getFeatures(), feature.getBundles()).toArray();
        } else {
            return new Object[0];
        }
    }
View Full Code Here

            return featuresRepository.getFeatures().getFeatures().size() > 0;
        } else if (element instanceof Features) {
            final Features features = (Features) element;
            return features.getFeatures().size() > 0;
        } else if (element instanceof Feature) {
            final Feature feature = (Feature) element;
            return feature.getBundles().size() > 0 || feature.getFeatures().size() > 0;
        } else {
            return false;
        }
    }
View Full Code Here

        final Element element = (Element) object;

        if (element.getName().equalsIgnoreCase("repository")) {
            return new Repository(element);
        } else if (element.getName().equalsIgnoreCase("feature")) {
            return new Feature(element);
        } else if (element.getName().equalsIgnoreCase("bundle")) {
            return new Bundle(element);
        } else if (element.getName().equalsIgnoreCase("features")) {
            return new Features(element, null);
        } else {
View Full Code Here

TOP

Related Classes of org.apache.karaf.eik.core.features.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.