Examples of unregisterView()


Examples of org.aperteworkflow.ui.view.ViewRegistry.unregisterView()

  @Override
    public void stop(BundleContext bundleContext) throws Exception {
    ViewRegistry registeredService = getViewRegistry(bundleContext);
    if (registeredService != null) {
      registeredService.unregisterView(ViewGeneratingFunction.INSTANCE);
    }
    }

  private ViewRegistry getViewRegistry(BundleContext bundleContext) {
    return (ViewRegistry)bundleContext.getService(bundleContext.getServiceReference(ViewRegistry.class.getName()));
View Full Code Here

Examples of org.sonatype.nexus.componentviews.ViewRegistry.unregisterView()

    final View newView = factory.createView(config);

    // De-register the existing view
    final View existingView = viewRegistry.findViewByName(config.getViewName());
    if (existingView != null) {
      viewRegistry.unregisterView(existingView);
    }
    // Register its replacement
    viewRegistry.registerView(newView);
  }
}
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.