org.openbandy.service
Class Service

java.lang.Object
  extended by org.openbandy.service.Service
Direct Known Subclasses:
DatabaseService, EventService, LogService, MessageService, NotificatorService, PreferencesService, SerializerService

public abstract class Service
extends java.lang.Object

A Service represents a high level abstraction of a framework functionality. Typically, a service implementation should provide static methods in order to make the usage as simple and easy as possible. Moreover, a service should take car of handling exceptions and setting default values wherever possible or needed.

(c) Copyright P. Bolliger 2007, ALL RIGHTS RESERVED.

Version:
1.0
Author:
Philipp Bolliger (philipp@bolliger.name)

Constructor Summary
Service()
           
 
Method Summary
static boolean runningOnMicroEdition()
          Determine whether the current VM is a Java Microedition by reading the according property.
static boolean runningOnSunWTK()
          Determine whether the current VM is Sun's Wireless Toolkit Emulator by reading the according property.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Service

public Service()
Method Detail

runningOnMicroEdition

public static boolean runningOnMicroEdition()
Determine whether the current VM is a Java Microedition by reading the according property.

Returns:
True if running on microedition

runningOnSunWTK

public static boolean runningOnSunWTK()
Determine whether the current VM is Sun's Wireless Toolkit Emulator by reading the according property.

Returns:
True if running on Sun WTK