SHARE
TWEET

com.example.server.DeploymentMode

tpeierls Jan 23rd, 2012 162 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * This code is placed in the public domain by its author, Tim Peierls.
  3.  */
  4. package com.example.server;
  5.  
  6. /**
  7.  * Whether we're running standalone or as a servlet.
  8.  */
  9. public enum DeploymentMode {
  10.  
  11.     /**
  12.      * Running as standalone Restlet component.
  13.      */
  14.     STANDALONE,
  15.  
  16.     /**
  17.      * Running Restlet component within a servlet.
  18.      */
  19.     SERVLET,
  20. }
RAW Paste Data
Top