org.granite.client.platform
Class Platform

java.lang.Object
  extended by org.granite.client.platform.Platform

public class Platform
extends Object

Author:
Franck WOLFF

Field Summary
protected  Object context
           
protected static Platform instance
           
protected  Persistence persistence
           
protected  Reflection reflection
           
static String SYSTEM_PROPERTY_KEY
           
 
Constructor Summary
Platform()
           
Platform(ClassLoader reflectionClassLoader)
           
Platform(Reflection reflection)
           
 
Method Summary
 Object getContext()
           
static Platform getInstance()
           
 Persistence getPersistence()
           
 Reflection getReflection()
           
static Platform initInstance(ClassLoader platformClassLoader)
           
static Platform initInstance(String platformClassName)
           
static Platform initInstance(String platformClassName, ClassLoader platformClassLoader)
           
static Platform initInstance(String platformClassName, ClassLoader platformClassLoader, ClassLoader reflectionClassLoader)
           
 Configuration newConfiguration()
           
 Transport newMessagingTransport()
           
 RemoteAliasScanner newRemoteAliasScanner()
           
 Transport newRemotingTransport()
           
static Persistence persistence()
           
static Reflection reflection()
           
 void setContext(Object context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM_PROPERTY_KEY

public static final String SYSTEM_PROPERTY_KEY

instance

protected static Platform instance

reflection

protected final Reflection reflection

persistence

protected final Persistence persistence

context

protected Object context
Constructor Detail

Platform

public Platform()

Platform

public Platform(ClassLoader reflectionClassLoader)

Platform

public Platform(Reflection reflection)
Method Detail

getInstance

public static Platform getInstance()

initInstance

public static Platform initInstance(ClassLoader platformClassLoader)

initInstance

public static Platform initInstance(String platformClassName)

initInstance

public static Platform initInstance(String platformClassName,
                                    ClassLoader platformClassLoader)

initInstance

public static Platform initInstance(String platformClassName,
                                    ClassLoader platformClassLoader,
                                    ClassLoader reflectionClassLoader)

getContext

public Object getContext()

setContext

public void setContext(Object context)

newRemoteAliasScanner

public RemoteAliasScanner newRemoteAliasScanner()

getReflection

public Reflection getReflection()

newConfiguration

public Configuration newConfiguration()

newRemotingTransport

public Transport newRemotingTransport()

newMessagingTransport

public Transport newMessagingTransport()

getPersistence

public Persistence getPersistence()

reflection

public static Reflection reflection()

persistence

public static Persistence persistence()