org.openpermis.examples.ldap
Class HelloWorldUtilities

java.lang.Object
  extended by org.openpermis.examples.ldap.HelloWorldUtilities

public final class HelloWorldUtilities
extends Object

Helper functions used by the sample.

The helper functions have been moved here to prevent that the reader of the hello world gets distracted by auxiliary helper functions.

Since:
0.1.0

Method Summary
static void fatalError(String message, Throwable cause)
          Logs a fatal error and terminates the application.
static String[] validateInput(String[] args)
          Simple helper function to validate the command line arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

validateInput

public static String[] validateInput(String[] args)
Simple helper function to validate the command line arguments.

Parameters:
args - the arguments to validate.
Returns:
the input arguments to run the hello world with.
Since:
0.1.0

fatalError

public static final void fatalError(String message,
                                    Throwable cause)
Logs a fatal error and terminates the application.

Parameters:
message - the message to log.
cause - the cause of the fatal error.
Since:
0.3.0


PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:07:18
Copyright (c) 2002-2007 Ergon Informatik AG