Examples of GeronimoOBRGBean


Examples of org.apache.geronimo.obr.GeronimoOBRGBean

@Command(scope = "obr", name = "geronimo-refresh", description = "Refresh Geronimo OBR repository")
public class RefreshCommand extends OsgiCommandSupport {

    protected Object doExecute() throws Exception {
        ServiceReference ref =  bundleContext.getServiceReference(GeronimoOBRGBean.class.getName());
        GeronimoOBRGBean service = (GeronimoOBRGBean) getService(GeronimoOBRGBean.class, ref);

        service.refresh();
       
        return null;
    }
View Full Code Here

Examples of org.apache.geronimo.obr.GeronimoOBRGBean

        ServiceReference reference = null;
       
        try {
            if (GeronimoOBRGBean.REPOSITORY_NAME.equals(name)) {
                reference = bundleContext.getServiceReference(GeronimoOBRGBean.class.getName());
                GeronimoOBRGBean obrGBean = (GeronimoOBRGBean) bundleContext.getService(reference);

                // do refresh
                obrGBean.refresh();               
            } else {
                reference = bundleContext.getServiceReference(RepositoryAdmin.class.getName());
                RepositoryAdmin repositoryAdmin = (RepositoryAdmin) bundleContext.getService(reference);

                // do refresh
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.