Package org.apache.aries.application.modelling.impl

Examples of org.apache.aries.application.modelling.impl.ModelledResourceImpl


  protected ModelledResource instantiateBundleResource() throws Exception
  {
    File file = new File(TEST_APP_MANIFEST_PATH, MANIFEST_MF);
    Manifest man = new Manifest(new FileInputStream(file));

    ModelledResource br = new ModelledResourceImpl(null, man.getMainAttributes(), null, null);
    return br;
  }
View Full Code Here


    }
    if(builder.length() > 0) {
      builder.deleteCharAt(builder.length() - 1);
      att.put(new Attributes.Name(Constants.EXPORT_PACKAGE), builder.toString());
    }
    return new ModelledResourceImpl(null, att, null, null);
  }
View Full Code Here

    List<ExportedService> exportedServices = new ArrayList<ExportedService>();
    for (String s : exportService) {
      exportedServices.add(new ExportedServiceImpl(null, 0, Collections.singleton(s), Collections.<String,Object>emptyMap()));
    }
   
    return new ModelledResourceImpl(null, att, importedServices, exportedServices);
  }
View Full Code Here

TOP

Related Classes of org.apache.aries.application.modelling.impl.ModelledResourceImpl

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.