org.axway.grapes.server
Class GrapesServer

java.lang.Object
  extended by com.yammer.dropwizard.Service<GrapesServerConfig>
      extended by org.axway.grapes.server.GrapesServer

public class GrapesServer
extends com.yammer.dropwizard.Service<GrapesServerConfig>

Grapes service class. This is the main entry point of the project. This class starts and registers the different resources of Grapes. This server is entirely based on dropwizard library: http://dropwizard.codahale.com/manual INFO: All the resources of Grapes server are available in org.axway.grapes.server.resources.

Author:
jdcoffre

Constructor Summary
protected GrapesServer()
           
 
Method Summary
 RepositoryHandler getRepositoryHandler(GrapesServerConfig config)
           
 void initialize(com.yammer.dropwizard.config.Bootstrap<GrapesServerConfig> bootstrap)
           
static void main(String[] args)
          Runs Grapes
 void run(GrapesServerConfig config, com.yammer.dropwizard.config.Environment env)
           
 
Methods inherited from class com.yammer.dropwizard.Service
getConfigurationClass, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrapesServer

protected GrapesServer()
Method Detail

main

public static void main(String[] args)
                 throws ExceptionInInitializerError
Runs Grapes

Throws:
ExceptionInInitializerError

initialize

public void initialize(com.yammer.dropwizard.config.Bootstrap<GrapesServerConfig> bootstrap)
Specified by:
initialize in class com.yammer.dropwizard.Service<GrapesServerConfig>

run

public void run(GrapesServerConfig config,
                com.yammer.dropwizard.config.Environment env)
         throws DBException,
                UnknownHostException
Specified by:
run in class com.yammer.dropwizard.Service<GrapesServerConfig>
Throws:
DBException
UnknownHostException

getRepositoryHandler

public RepositoryHandler getRepositoryHandler(GrapesServerConfig config)
                                       throws DBException,
                                              UnknownHostException
Throws:
DBException
UnknownHostException


Copyright © 2014. All Rights Reserved.