Codota Logo
GeoServerApplication.getBean
Code IndexAdd Codota to your IDE (free)

How to use
getBean
method
in
org.geoserver.web.GeoServerApplication

Best Java code snippets using org.geoserver.web.GeoServerApplication.getBean (Showing top 13 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: org.geoserver.web/gs-web-core

  /**
   * Returns the main {@link ResourceStore} for GeoServer. Subclasses can override in case they
   * are using a different resource store
   */
  protected ResourceStore getResourceStore() {
    ResourceStore store = (ResourceStore) GeoServerApplication.get().getBean("resourceStore");
    return store;
  }
}
origin: org.geoserver.community/importer-web

  public ImporterPageManager getPageManager()
  {
    return (ImporterPageManager) this.getGeoServerApplication().getBean("importerPages");
  }
}
origin: org.geoserver.community/gs-geofence-server

private static AdminRuleAdminService adminService() {
  return (AdminRuleAdminService) GeoServerApplication.get().getBean("adminRuleAdminService");
}
origin: org.geoserver.community/gs-geofence-server

private static RuleAdminService adminService() {
  return (RuleAdminService) GeoServerApplication.get().getBean("ruleAdminService");
}
origin: org.geoserver.community/importer-web

public ImportSummary getSummary()
{
  ImporterPageManager pageManager = (ImporterPageManager) getGeoServerApplication().getBean("importerPages");
  return pageManager.getSummary(this.importerId);
}
origin: org.geoserver.community/importer-web

public Importer getImporter()
{
  ImporterThreadManager manager = (ImporterThreadManager) getGeoServerApplication().getBean(
      "importerPool");
  Importer importer = manager.getImporter(this.importerId);
  return importer;
}
origin: org.geoserver.web/web-core

  @Override
  public void onClick(AjaxRequestTarget target) {
    try {
      GeoServerLoader loader = (GeoServerLoader) GeoServerApplication.get().getBean("geoServerLoader");
      synchronized (org.geoserver.config.GeoServer.CONFIGURATION_LOCK) {
        loader.reload();
      }
      info("Catalog and configuration reloaded");
    } catch(Exception e) {
      error(e);
    }
  }
});
origin: org.geoserver.web/gs-web-core

  @Override
  public void onClick(AjaxRequestTarget target) {
    try {
      GeoServerLoader loader =
          (GeoServerLoader)
              GeoServerApplication.get().getBean("geoServerLoader");
      synchronized (org.geoserver.config.GeoServer.CONFIGURATION_LOCK) {
        loader.reload();
      }
      info("Catalog and configuration reloaded");
    } catch (Exception e) {
      error(e);
    }
  }
});
origin: org.geoserver.web/gs-web-wcs

  String getRequestXML() {
    ByteArrayOutputStream out = new ByteArrayOutputStream();

    TransformerBase tx;
    if (builder.getCoverage.version == Version.v1_0_0) {
      tx = new WCS10GetCoverageTransformer(getCatalog());
    } else {
      CoverageResponseDelegateFinder responseFactory =
          (CoverageResponseDelegateFinder)
              getGeoServerApplication().getBean("coverageResponseDelegateFactory");
      tx = new WCS11GetCoverageTransformer(getCatalog(), responseFactory);
    }

    try {
      tx.setIndentation(2);
      tx.transform(builder.getCoverageRequest(), out);
    } catch (TransformerException e) {
      LOGGER.log(Level.SEVERE, "Error generating xml request", e);
      error(e);
    }
    return out.toString();
  }
}
origin: org.geoserver.community/importer-web

FeatureTypeImporter importer = new FeatureTypeImporter(id, (ImporterThreadManager) getGeoServerApplication().getBean(
      "importerPool"), store, null, names,
    getCatalog(), workspaceNew, storeNew, outdirectory, copy);
ImporterThreadManager manager = (ImporterThreadManager) getGeoServerApplication().getBean("importerPool");
final String result = manager.startImporter(id, importer);
if (result == null)
  ImporterPageManager pageManager = (ImporterPageManager) getGeoServerApplication().getBean("importerPages");
  pageManager.addProgressPage(id, progressPage);
  pageManager.addSummary(id, importer.getSummary());
origin: org.geoserver.community/importer-web

oc.setSubsampleAlgorithm(subsamplealgorithm);
ImporterThreadManager threadManager = (ImporterThreadManager) getGeoServerApplication().getBean("importerPool");
CoverageImporter importer = new CoverageImporter(id, threadManager, defaultsrs, names,
  getCatalog(), workspaceNew, storeNew, config);
  ImporterPageManager pageManager = (ImporterPageManager) getGeoServerApplication().getBean("importerPages");
  pageManager.addProgressPage(id, progressPage);
  pageManager.addSummary(id, importer.getSummary());
origin: org.geoserver.community/importer-web

ImporterPageManager pageManager = (ImporterPageManager) getGeoServerApplication().getBean("importerPages");
pageManager.removeSummary(summary.getId());
origin: org.geoserver.web/gs-web-wcs

        GeoServerApplication.get().getBean("coverageResponseDelegateFactory");
formats =
    new DropDownChoice<String>(
org.geoserver.webGeoServerApplicationgetBean

Javadoc

Loads a bean from the spring application context with a specific name.

Popular methods of GeoServerApplication

  • get
  • getCatalog
  • getGeoServer
    Returns the geoserver configuration instance.
  • getBeanOfType
    Loads a bean from the spring application context of a specific type.If there are multiple beans of t
  • getBeansOfType
    Loads beans from the spring application context of a specific type.
  • getSecurityManager
    Returns the security manager.
  • getApplicationContext
    Returns the spring application context.
  • getResourceLoader
    Returns the geoserver resource loader.
  • servletRequest
    Convenience method to get the underlying servlet request backing the current wicket request.
  • getDebugSettings
  • clearWicketCaches
    Clears all the wicket caches so that resources and localization files will be re-read
  • getApplicationSettings
  • clearWicketCaches,
  • getApplicationSettings,
  • getRequestCycleSettings,
  • getResourceSettings,
  • getSecuritySettings,
  • getConfigurationType,
  • getMarkupSettings,
  • getRequestCycleListeners,
  • getRootRequestMapper

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • JFileChooser (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now