Package org.iosgi

Examples of org.iosgi.IsolatedFramework


  @Override
  public void perform(IsolationAdmin admin) throws Exception {
    switch (type) {
    case INSTALL: {
      IsolatedFramework fw = admin.getIsolatedFramework(URI.create(this
          .getTarget()));
      byte[] data = null;
      /*
       * File may not be accessible from remote isolation environment.
       * Thus, install with prefetched bundle data.
       */
      if (location.startsWith("file:")) {
        File f = new File(URI.create(location));
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        Streams.drain(new FileInputStream(f), baos).get();
        data = baos.toByteArray();
      }
      fw.installBundle(location, data);
      break;
    }
    case UNINSTALL: {
      Bundle b = admin.getBundle(location);
      if (b == null) {
View Full Code Here

TOP

Related Classes of org.iosgi.IsolatedFramework

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.