Felix Meschberger | add2b4a | 2007-04-11 18:12:33 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * $Url: $ |
| 3 | * $Id$ |
| 4 | * |
| 5 | * Copyright 1997-2005 Day Management AG |
| 6 | * Barfuesserplatz 6, 4001 Basel, Switzerland |
| 7 | * All Rights Reserved. |
| 8 | * |
| 9 | * This software is the confidential and proprietary information of |
| 10 | * Day Management AG, ("Confidential Information"). You shall not |
| 11 | * disclose such Confidential Information and shall use it only in |
| 12 | * accordance with the terms of the license agreement you entered into |
| 13 | * with Day. |
| 14 | */ |
| 15 | package org.apache.felix.cm; |
| 16 | |
| 17 | import java.io.File; |
| 18 | import java.io.InputStream; |
| 19 | import java.util.Dictionary; |
| 20 | |
| 21 | import org.osgi.framework.Bundle; |
| 22 | import org.osgi.framework.BundleContext; |
| 23 | import org.osgi.framework.BundleException; |
| 24 | import org.osgi.framework.BundleListener; |
| 25 | import org.osgi.framework.Filter; |
| 26 | import org.osgi.framework.FrameworkListener; |
| 27 | import org.osgi.framework.InvalidSyntaxException; |
| 28 | import org.osgi.framework.ServiceListener; |
| 29 | import org.osgi.framework.ServiceReference; |
| 30 | import org.osgi.framework.ServiceRegistration; |
| 31 | |
| 32 | /** |
| 33 | * The <code>MockBundleContext</code> TODO |
| 34 | * |
| 35 | * @author fmeschbe |
| 36 | * @version $Rev:$, $Date:$ |
| 37 | */ |
| 38 | public class MockBundleContext implements BundleContext |
| 39 | { |
| 40 | |
| 41 | /* (non-Javadoc) |
| 42 | * @see org.osgi.framework.BundleContext#addBundleListener(org.osgi.framework.BundleListener) |
| 43 | */ |
| 44 | public void addBundleListener( BundleListener arg0 ) |
| 45 | { |
| 46 | // TODO Auto-generated method stub |
| 47 | |
| 48 | } |
| 49 | |
| 50 | |
| 51 | /* (non-Javadoc) |
| 52 | * @see org.osgi.framework.BundleContext#addFrameworkListener(org.osgi.framework.FrameworkListener) |
| 53 | */ |
| 54 | public void addFrameworkListener( FrameworkListener arg0 ) |
| 55 | { |
| 56 | // TODO Auto-generated method stub |
| 57 | |
| 58 | } |
| 59 | |
| 60 | |
| 61 | /* (non-Javadoc) |
| 62 | * @see org.osgi.framework.BundleContext#addServiceListener(org.osgi.framework.ServiceListener) |
| 63 | */ |
| 64 | public void addServiceListener( ServiceListener arg0 ) |
| 65 | { |
| 66 | // TODO Auto-generated method stub |
| 67 | |
| 68 | } |
| 69 | |
| 70 | |
| 71 | /* (non-Javadoc) |
| 72 | * @see org.osgi.framework.BundleContext#addServiceListener(org.osgi.framework.ServiceListener, java.lang.String) |
| 73 | */ |
| 74 | public void addServiceListener( ServiceListener arg0, String arg1 ) throws InvalidSyntaxException |
| 75 | { |
| 76 | // TODO Auto-generated method stub |
| 77 | |
| 78 | } |
| 79 | |
| 80 | |
| 81 | /* (non-Javadoc) |
| 82 | * @see org.osgi.framework.BundleContext#createFilter(java.lang.String) |
| 83 | */ |
| 84 | public Filter createFilter( String arg0 ) throws InvalidSyntaxException |
| 85 | { |
| 86 | // TODO Auto-generated method stub |
| 87 | return null; |
| 88 | } |
| 89 | |
| 90 | |
| 91 | /* (non-Javadoc) |
| 92 | * @see org.osgi.framework.BundleContext#getAllServiceReferences(java.lang.String, java.lang.String) |
| 93 | */ |
| 94 | public ServiceReference[] getAllServiceReferences( String arg0, String arg1 ) throws InvalidSyntaxException |
| 95 | { |
| 96 | // TODO Auto-generated method stub |
| 97 | return null; |
| 98 | } |
| 99 | |
| 100 | |
| 101 | /* (non-Javadoc) |
| 102 | * @see org.osgi.framework.BundleContext#getBundle() |
| 103 | */ |
| 104 | public Bundle getBundle() |
| 105 | { |
| 106 | // TODO Auto-generated method stub |
| 107 | return null; |
| 108 | } |
| 109 | |
| 110 | |
| 111 | /* (non-Javadoc) |
| 112 | * @see org.osgi.framework.BundleContext#getBundle(long) |
| 113 | */ |
| 114 | public Bundle getBundle( long arg0 ) |
| 115 | { |
| 116 | // TODO Auto-generated method stub |
| 117 | return null; |
| 118 | } |
| 119 | |
| 120 | |
| 121 | /* (non-Javadoc) |
| 122 | * @see org.osgi.framework.BundleContext#getBundles() |
| 123 | */ |
| 124 | public Bundle[] getBundles() |
| 125 | { |
| 126 | // TODO Auto-generated method stub |
| 127 | return null; |
| 128 | } |
| 129 | |
| 130 | |
| 131 | /* (non-Javadoc) |
| 132 | * @see org.osgi.framework.BundleContext#getDataFile(java.lang.String) |
| 133 | */ |
| 134 | public File getDataFile( String arg0 ) |
| 135 | { |
| 136 | // TODO Auto-generated method stub |
| 137 | return null; |
| 138 | } |
| 139 | |
| 140 | |
| 141 | /* (non-Javadoc) |
| 142 | * @see org.osgi.framework.BundleContext#getProperty(java.lang.String) |
| 143 | */ |
| 144 | public String getProperty( String arg0 ) |
| 145 | { |
| 146 | // TODO Auto-generated method stub |
| 147 | return null; |
| 148 | } |
| 149 | |
| 150 | |
| 151 | /* (non-Javadoc) |
| 152 | * @see org.osgi.framework.BundleContext#getService(org.osgi.framework.ServiceReference) |
| 153 | */ |
| 154 | public Object getService( ServiceReference arg0 ) |
| 155 | { |
| 156 | // TODO Auto-generated method stub |
| 157 | return null; |
| 158 | } |
| 159 | |
| 160 | |
| 161 | /* (non-Javadoc) |
| 162 | * @see org.osgi.framework.BundleContext#getServiceReference(java.lang.String) |
| 163 | */ |
| 164 | public ServiceReference getServiceReference( String arg0 ) |
| 165 | { |
| 166 | // TODO Auto-generated method stub |
| 167 | return null; |
| 168 | } |
| 169 | |
| 170 | |
| 171 | /* (non-Javadoc) |
| 172 | * @see org.osgi.framework.BundleContext#getServiceReferences(java.lang.String, java.lang.String) |
| 173 | */ |
| 174 | public ServiceReference[] getServiceReferences( String arg0, String arg1 ) throws InvalidSyntaxException |
| 175 | { |
| 176 | // TODO Auto-generated method stub |
| 177 | return null; |
| 178 | } |
| 179 | |
| 180 | |
| 181 | /* (non-Javadoc) |
| 182 | * @see org.osgi.framework.BundleContext#installBundle(java.lang.String) |
| 183 | */ |
| 184 | public Bundle installBundle( String arg0 ) throws BundleException |
| 185 | { |
| 186 | // TODO Auto-generated method stub |
| 187 | return null; |
| 188 | } |
| 189 | |
| 190 | |
| 191 | /* (non-Javadoc) |
| 192 | * @see org.osgi.framework.BundleContext#installBundle(java.lang.String, java.io.InputStream) |
| 193 | */ |
| 194 | public Bundle installBundle( String arg0, InputStream arg1 ) throws BundleException |
| 195 | { |
| 196 | // TODO Auto-generated method stub |
| 197 | return null; |
| 198 | } |
| 199 | |
| 200 | |
| 201 | /* (non-Javadoc) |
| 202 | * @see org.osgi.framework.BundleContext#registerService(java.lang.String[], java.lang.Object, java.util.Dictionary) |
| 203 | */ |
| 204 | public ServiceRegistration registerService( String[] arg0, Object arg1, Dictionary arg2 ) |
| 205 | { |
| 206 | // TODO Auto-generated method stub |
| 207 | return null; |
| 208 | } |
| 209 | |
| 210 | |
| 211 | /* (non-Javadoc) |
| 212 | * @see org.osgi.framework.BundleContext#registerService(java.lang.String, java.lang.Object, java.util.Dictionary) |
| 213 | */ |
| 214 | public ServiceRegistration registerService( String arg0, Object arg1, Dictionary arg2 ) |
| 215 | { |
| 216 | // TODO Auto-generated method stub |
| 217 | return null; |
| 218 | } |
| 219 | |
| 220 | |
| 221 | /* (non-Javadoc) |
| 222 | * @see org.osgi.framework.BundleContext#removeBundleListener(org.osgi.framework.BundleListener) |
| 223 | */ |
| 224 | public void removeBundleListener( BundleListener arg0 ) |
| 225 | { |
| 226 | // TODO Auto-generated method stub |
| 227 | |
| 228 | } |
| 229 | |
| 230 | |
| 231 | /* (non-Javadoc) |
| 232 | * @see org.osgi.framework.BundleContext#removeFrameworkListener(org.osgi.framework.FrameworkListener) |
| 233 | */ |
| 234 | public void removeFrameworkListener( FrameworkListener arg0 ) |
| 235 | { |
| 236 | // TODO Auto-generated method stub |
| 237 | |
| 238 | } |
| 239 | |
| 240 | |
| 241 | /* (non-Javadoc) |
| 242 | * @see org.osgi.framework.BundleContext#removeServiceListener(org.osgi.framework.ServiceListener) |
| 243 | */ |
| 244 | public void removeServiceListener( ServiceListener arg0 ) |
| 245 | { |
| 246 | // TODO Auto-generated method stub |
| 247 | |
| 248 | } |
| 249 | |
| 250 | |
| 251 | /* (non-Javadoc) |
| 252 | * @see org.osgi.framework.BundleContext#ungetService(org.osgi.framework.ServiceReference) |
| 253 | */ |
| 254 | public boolean ungetService( ServiceReference arg0 ) |
| 255 | { |
| 256 | // TODO Auto-generated method stub |
| 257 | return false; |
| 258 | } |
| 259 | |
| 260 | } |