Examples of MetaTypeService


Examples of org.osgi.service.metatype.MetaTypeService

    protected void activate(ComponentContext ctxt) {
      //System.out.println("TestAlgorithm 2 beginning activation");
        //You may delete all references to metatype service if
        //your algorithm does not require parameters and return
        //null in the createParameters() method
        MetaTypeService mts = (MetaTypeService)ctxt.locateService("MTS");
        provider = mts.getMetaTypeInformation(ctxt.getBundleContext().getBundle());
       
        Dictionary properties = ctxt.getProperties();
       
        Enumeration propertiesKeys = properties.keys();
   
View Full Code Here

Examples of org.osgi.service.metatype.MetaTypeService

    protected void activate(ComponentContext ctxt) {
    //  System.out.println("TestAlgorithm 3 beginning activation");
        //You may delete all references to metatype service if
        //your algorithm does not require parameters and return
        //null in the createParameters() method
        MetaTypeService mts = (MetaTypeService)ctxt.locateService("MTS");
        provider = mts.getMetaTypeInformation(ctxt.getBundleContext().getBundle());      
       
  Dictionary properties = ctxt.getProperties();
       
        Enumeration propertiesKeys = properties.keys();
   
View Full Code Here

Examples of org.osgi.service.metatype.MetaTypeService

    private MetaTypeProvider provider;
   
    protected void activate(ComponentContext ctxt) {
        bContext = ctxt.getBundleContext();
       
        MetaTypeService mts = (MetaTypeService)ctxt.locateService("MTS");
        provider = mts.getMetaTypeInformation(ctxt.getBundleContext().getBundle());
    }
View Full Code Here

Examples of org.osgi.service.metatype.MetaTypeService

    protected void activate(ComponentContext ctxt) {
      //System.out.println("TestAlgorithm 4 beginning activation");
        //You may delete all references to metatype service if
        //your algorithm does not require parameters and return
        //null in the createParameters() method
        MetaTypeService mts = (MetaTypeService)ctxt.locateService("MTS");
       
        this.log = (LogService) ctxt.locateService("LOG");
        this.ca = (ConfigurationAdmin) ctxt.locateService("CA");
        provider = mts.getMetaTypeInformation(ctxt.getBundleContext().getBundle());      
        this.pid = (String) ctxt.getProperties().get("service.pid");
       // System.out.println("TestAlgorithm 4 done activating");
    }
View Full Code Here

Examples of org.osgi.service.metatype.MetaTypeService

  protected MetaTypeProvider getPossiblyMutatedMetaTypeProvider(
      String metatypePID, String pid, AlgorithmFactory factory)
      throws AlgorithmCreationFailedException {
    MetaTypeProvider provider = null;
    MetaTypeService metaTypeService = (MetaTypeService) Activator
        .getService(MetaTypeService.class.getName());
    if (metaTypeService != null) {
      provider = metaTypeService
          .getMetaTypeInformation(this.serviceReference.getBundle());

    }

    if ((factory instanceof ParameterMutator) && (provider != null)) {
View Full Code Here

Examples of org.osgi.service.metatype.MetaTypeService

            }
        }
        // second check is using the meta type service
        if (providingBundle != null)
        {
            final MetaTypeService mts = this.getMetaTypeService();
            if (mts != null)
            {
                final MetaTypeInformation mti = mts.getMetaTypeInformation(providingBundle);
                if (mti != null)
                {
                    try {
                        return mti.getObjectClassDefinition(pid, null) != null;
                    } catch (IllegalArgumentException e) {
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.