Package org.osgi.framework

Examples of org.osgi.framework.BundleContext.ungetService()


            ServiceRegistration synEnvServiceRegistration =
                    synapseRegistrationsService.getSynapseEnvironmentServiceRegistration();

            if (synEnvServiceRegistration != null) {
                bundleContext.ungetService(synEnvServiceRegistration.getReference());
            }

            bundleContext.ungetService(serviceRegistration.getReference());
        }
    }
View Full Code Here


            if (synEnvServiceRegistration != null) {
                bundleContext.ungetService(synEnvServiceRegistration.getReference());
            }

            bundleContext.ungetService(serviceRegistration.getReference());
        }
    }

    /**
     * Create the default configuration
View Full Code Here

                Bundle bundle = ref.getBundle();
                if (bundle != null) {
                    BundleContext ctx = getBundleContextForServiceLookup();
                    if (ctx != null) {
                      try {
                          ctx.ungetService(ref);
                      } catch (IllegalStateException ise) {
                        // we don't care it doesn't exist so, shrug.
                      }
                    }
                }
View Full Code Here

                        tldScanStream(url, new TldLocation(entry.getName(), entry.getJarUrl().toExternalForm()));
                    } else {
                        tldScanStream(url, new TldLocation(entry.getName(), new BundleJarResource(entry.getBundle())));
                    }
                }
                bundleContext.ungetService(reference);
            }
        }
    }
   
    private void tldScanStream(URL url, TldLocation location) throws IOException {
View Full Code Here

            applicationBundles.clear();

            throw be;
        } finally {
            if (resolver != null) {
                bundleContext.ungetService(ref);
            }
        }

        applicationState = ApplicationState.INSTALLED;
    }
View Full Code Here

                TldProvider provider = (TldProvider) bundleContext.getService(reference);
                for (TldProvider.TldEntry entry : provider.getTlds()) {
                    URL url = entry.getURL();
                    tldURLs.add(url);
                }
                bundleContext.ungetService(reference);
            }
        }
        return tldURLs;
    }
   
View Full Code Here

                try {
                    if (target instanceof Function) {
                        function = (Function) target;
                    }
                } finally {
                    context.ungetService(reference);
                }
            }
        } catch (Throwable t) {
        }
        return function;
View Full Code Here

                try {
                    if (target instanceof Function) {
                        function = (Function) target;
                    }
                } finally {
                    context.ungetService(reference);
                }
            }
        } catch (Throwable t) {
        }
        return function;
View Full Code Here

                try {
                    if (target instanceof Function) {
                        function = (Function) target;
                    }
                } finally {
                    context.ungetService(reference);
                }
            }
        } catch (Throwable t) {
        }
        return function;
View Full Code Here

                try {
                    if (target instanceof Function) {
                        function = (Function) target;
                    }
                } finally {
                    context.ungetService(reference);
                }
            }
        } catch (Throwable t) {
        }
        return function;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.