1 36 package org.ungoverned.oscar; 37 38 import java.io.File ; 39 import java.util.Map ; 40 41 import org.osgi.framework.Bundle; 42 import org.osgi.framework.BundleActivator; 43 import org.ungoverned.oscar.util.OscarConstants; 44 45 public class SystemBundleArchive implements BundleArchive 46 { 47 private Map m_headerMap = null; 48 49 public long getId() 50 { 51 return 0; 52 } 53 54 public String getLocation() 55 throws Exception 56 { 57 return OscarConstants.SYSTEM_BUNDLE_LOCATION; 58 } 59 60 public int getPersistentState() 61 throws Exception 62 { 63 return Bundle.ACTIVE; 64 } 65 66 public void setPersistentState(int state) 67 throws Exception 68 { 69 } 70 71 public int getStartLevel() 72 throws Exception 73 { 74 return OscarConstants.SYSTEMBUNDLE_DEFAULT_STARTLEVEL; 75 } 76 77 public void setStartLevel(int level) 78 throws Exception 79 { 80 } 81 82 public File getDataFile(String fileName) 83 throws Exception 84 { 85 return null; 86 } 87 88 public BundleActivator getActivator(ClassLoader loader) 89 throws Exception 90 { 91 return null; 92 } 93 94 public void setActivator(Object obj) 95 throws Exception 96 { 97 } 98 99 public int getRevisionCount() 100 throws Exception 101 { 102 return 1; 103 } 104 105 public Map getManifestHeader(int revision) 106 throws Exception 107 { 108 return m_headerMap; 109 } 110 111 protected void setManifestHeader(Map headerMap) 112 { 113 m_headerMap = headerMap; 114 } 115 116 public String [] getClassPath(int revision) 117 throws Exception 118 { 119 return null; 120 } 121 122 public String findLibrary(int revision, String libName) 123 throws Exception 124 { 125 return null; 126 } 127 } | Popular Tags |