Package org.apache.muse.core.platform.osgi

Examples of org.apache.muse.core.platform.osgi.OSGiEnvironmentImpl


 
 
  public void initialize(BundleContext context) {
    context.addBundleListener(this);
    Bundle bundles[] = context.getBundles();
    OSGiEnvironment env = new OSGiEnvironmentImpl(false);
    for (int i = 0; i < bundles.length; i++) {
      switch (bundles[i].getState()) {
      case Bundle.ACTIVE:
      case Bundle.RESOLVED:
      case Bundle.STARTING:
View Full Code Here


    private String wsdlPath;
  }
 
  private Collection getContextPathsForBundle(Bundle bundle, String target) {
    ArrayList list = new ArrayList();
    OSGiEnvironment env = new OSGiEnvironmentImpl(false);
    env.setThreadLocalBundle(bundle);
    OSGiReflectUtilHelper.getDefault().setThreadLocalBundle(bundle);
    try {
      Document ddXML = env.getDocument(target);
      OSGiDeploymentDescriptor dd = new OSGiDeploymentDescriptor();
      Collection resourceDefs = dd.loadContextPaths(ddXML, env);
      Iterator paths = resourceDefs.iterator();
     
      String contextPath = (String) bundle.getHeaders().get(
View Full Code Here

 
 
  public void initialize(BundleContext context) {
    context.addBundleListener(this);
    Bundle bundles[] = context.getBundles();
    OSGiEnvironment env = new OSGiEnvironmentImpl(false);
    for (int i = 0; i < bundles.length; i++) {
      switch (bundles[i].getState()) {
      case Bundle.ACTIVE:
      case Bundle.RESOLVED:
      case Bundle.STARTING:
View Full Code Here

    private String wsdlPath;
  }
 
  private Collection getContextPathsForBundle(Bundle bundle, String target) {
    ArrayList list = new ArrayList();
    OSGiEnvironment env = new OSGiEnvironmentImpl(false);
    env.setThreadLocalBundle(bundle);
    OSGiReflectUtilHelper.getDefault().setThreadLocalBundle(bundle);
    try {
      Document ddXML = env.getDocument(target);
      OSGiDeploymentDescriptor dd = new OSGiDeploymentDescriptor();
      Collection resourceDefs = dd.loadContextPaths(ddXML, env);
      Iterator paths = resourceDefs.iterator();
     
      String contextPath = (String) bundle.getHeaders().get(
View Full Code Here

TOP

Related Classes of org.apache.muse.core.platform.osgi.OSGiEnvironmentImpl

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.