Package org.osgi.framework

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


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


                    if (target instanceof Function) {
                        function = (Function) target;
                    }
                } finally {
                    if (context != null) {
                        context.ungetService(reference);
                    }
                }
            }
        } catch (Throwable t) {
        }
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

        } catch (InvalidSyntaxException e) {
            logger.error("Syntax error looking up service {} using filter {}", EventHandler.class.getName(), EventHandler.MANAGED_FILTER);
        } finally {
            if (references != null) {
                for (ServiceReference ref : references) {
                    bundleContext.ungetService(ref);
                }
            }
        }
        return result;
    }
View Full Code Here

        } catch (Exception e) {
            logger.warn("Unable to add temporary directory " + tempDirectory + "to the Tomcat deployment watcher, that folder will not be delete on the undeployment", e);
        } finally {
            if (tomcatDeploymentWatcherReference != null) {
                try {
                    bundleContext.ungetService(tomcatDeploymentWatcherReference);
                } catch (Exception e) {
                }
            }
        }
    }
View Full Code Here

                repositoryAdmin.removeRepository(uri);
                repositoryAdmin.addRepository(uri);
            }
        } finally {
            if (reference != null) {
                bundleContext.ungetService(reference);
            }
        }
       
        addInfoMessage(actionRequest, getLocalizedString(actionRequest, "consolebase.obrmanager.info.refreshurl", name));
    }
View Full Code Here

            repositoryAdmin.removeRepository(uri);
            persistRepositoryList(repositoryAdmin, PortletManager.getCurrentServer(actionRequest).getServerInfo());
           
        } finally {
            if (reference != null) {
                bundleContext.ungetService(reference);
            }
        }
       
        addInfoMessage(actionRequest, getLocalizedString(actionRequest, "consolebase.obrmanager.info.removeurl", name));
    }
View Full Code Here

           
            name = getName(repository.getName(), obrUrl);
           
        } finally {
            if (reference != null) {
                bundleContext.ungetService(reference);
            }
        }
       
        addInfoMessage(actionRequest, getLocalizedString(actionRequest, "consolebase.obrmanager.info.add", name));       
    }
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.