mondrian.util
Interface UtilCompatible

All Known Implementing Classes:
UtilCompatibleJdk14, UtilCompatibleJdk15, UtilCompatibleJdk16

public interface UtilCompatible

Interface containing methods which are implemented differently in different versions of the JDK.

The methods should not be called directly, only via the corresponding static methods in Util, namely:

This interface could in principle be extended to allow native implementations of methods, or to serve as a factory for entire classes which have different implementations in different environments.

Since:
Feb 5, 2007
Version:
$Id: //open/mondrian/src/main/mondrian/util/UtilCompatible.java#9 $
Author:
jhyde

Method Summary
<T> T
compileScript(Class<T> iface, String script, String engineName)
          Compiles a script to yield a Java interface.
 String generateUuidString()
           
<T> T
getAnnotation(Method method, String annotationClassName, T defaultValue)
           
 BigDecimal makeBigDecimalFromDouble(double d)
           
 String quotePattern(String s)
           
<T> void
threadLocalRemove(ThreadLocal<T> threadLocal)
           
 

Method Detail

makeBigDecimalFromDouble

BigDecimal makeBigDecimalFromDouble(double d)

quotePattern

String quotePattern(String s)

getAnnotation

<T> T getAnnotation(Method method,
                    String annotationClassName,
                    T defaultValue)

generateUuidString

String generateUuidString()

compileScript

<T> T compileScript(Class<T> iface,
                    String script,
                    String engineName)
Compiles a script to yield a Java interface.

Type Parameters:
T - Interface
Parameters:
iface - Interface script should implement
script - Script code
engineName - Name of engine (e.g. "JavaScript")
Returns:
Object that implements given interface

threadLocalRemove

<T> void threadLocalRemove(ThreadLocal<T> threadLocal)

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads