Package com.atlassian.labs.speakeasy.descriptor.external

Examples of com.atlassian.labs.speakeasy.descriptor.external.ConditionGenerator


        // generate and register new services
        Bundle targetBundle = findBundleForPlugin(bundleContext, pluginKey);
        List<ModuleDescriptor> generatedDescriptors = new ArrayList<ModuleDescriptor>();
        List<ServiceRegistration> serviceRegistrations = newArrayList();
        ConditionGenerator conditionGenerator = data.isGlobalExtension(pluginKey) ? new GroupsConditionGenerator(settingsManager.getSettings().getAccessGroups()) :
                new UsersConditionGenerator(data.getUsersList(pluginKey));
        for (ModuleDescriptor generatedDescriptor : descriptorGenerator.getDescriptorsToExposeForUsers(conditionGenerator, targetBundle.getLastModified()))
        {
            ServiceRegistration reg = targetBundle.getBundleContext().registerService(ModuleDescriptor.class.getName(), generatedDescriptor, null);
            serviceRegistrations.add(reg);
View Full Code Here

TOP

Related Classes of com.atlassian.labs.speakeasy.descriptor.external.ConditionGenerator

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.