Package org.osgi.service.metatype

Examples of org.osgi.service.metatype.MetaTypeInformation


    @Override
    public MetaTypeSummaryDTO metaTypeSummary() {
        MetaTypeSummaryDTO answer = new MetaTypeSummaryDTO();
        Bundle[] bundles = bundleContext.getBundles();
        for (Bundle bundle : bundles) {
            MetaTypeInformation info = getMetaTypeInformation(bundle);
            if (info != null) {
                answer.addTypeInformation(bundle, info);
            }
        }
        return answer;
View Full Code Here


    @Override
    public MetaTypeObjectDTO getPidMetaTypeObject(String pid, String locale) {
        Bundle[] bundles = bundleContext.getBundles();
        MetaTypeObjectDTO answer = null;
        for (Bundle bundle : bundles) {
            MetaTypeInformation info = getMetaTypeInformation(bundle);
            if (info != null) {
                ObjectClassDefinition object = MetaTypeSummaryDTO.tryGetObjectClassDefinition(info, pid, locale);
                if (object != null) {
                    if (answer == null) {
                        answer = new MetaTypeObjectDTO(object);
View Full Code Here

        Bundle bundle = bundleContext.getBundle(bundleId);
        return getMetaTypeObject(bundle, pid, locale);
    }

    protected MetaTypeObjectDTO getMetaTypeObject(Bundle bundle, String pid, String locale) {
        MetaTypeInformation info = getMetaTypeInformation(bundle);
        if (info != null) {
            ObjectClassDefinition objectClassDefinition = info.getObjectClassDefinition(pid, locale);
            if (objectClassDefinition != null) {
                return new MetaTypeObjectDTO(objectClassDefinition);
            }
        }
        return null;
View Full Code Here

        }
        return null;
    }

    protected MetaTypeInformationDTO getMetaTypeInformationDTO(Bundle bundle) {
        MetaTypeInformation info = getMetaTypeInformation(bundle);
        if (info != null) {
            return new MetaTypeInformationDTO(info);
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of org.osgi.service.metatype.MetaTypeInformation

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.