public class Platform
extends java.lang.Object
ServiceLoader registry.
The platform implementation must be unique (otherwise a PlatformConfigurationError is throws). To resolve the ambiguity,
the platform class name can also be defined by the system property org.granite.client.platform.Platform.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
context |
protected static Platform |
instance |
protected Persistence |
persistence |
protected Reflection |
reflection |
static java.lang.String |
SYSTEM_PROPERTY_KEY |
| Constructor and Description |
|---|
Platform() |
Platform(java.lang.ClassLoader reflectionClassLoader) |
Platform(Reflection reflection) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
defaultChannelType() |
java.lang.Object |
getContext() |
static Platform |
getInstance() |
java.util.Map<java.lang.String,Transport> |
getMessagingTransports() |
Persistence |
getPersistence() |
Reflection |
getReflection() |
static Platform |
initInstance(java.lang.ClassLoader platformClassLoader) |
static Platform |
initInstance(java.lang.String platformClassName) |
static Platform |
initInstance(java.lang.String platformClassName,
java.lang.ClassLoader platformClassLoader) |
static Platform |
initInstance(java.lang.String platformClassName,
java.lang.ClassLoader platformClassLoader,
java.lang.ClassLoader reflectionClassLoader) |
ClassScanner |
newClassScanner() |
Configuration |
newConfiguration() |
Transport |
newMessagingTransport() |
Transport |
newRemotingTransport() |
static Persistence |
persistence() |
static Reflection |
reflection() |
void |
setContext(java.lang.Object context) |
public static final java.lang.String SYSTEM_PROPERTY_KEY
protected static Platform instance
protected final Reflection reflection
protected final Persistence persistence
protected java.lang.Object context
public Platform()
public Platform(java.lang.ClassLoader reflectionClassLoader)
public Platform(Reflection reflection)
public static Platform getInstance()
public static Platform initInstance(java.lang.ClassLoader platformClassLoader)
public static Platform initInstance(java.lang.String platformClassName)
public static Platform initInstance(java.lang.String platformClassName, java.lang.ClassLoader platformClassLoader)
public static Platform initInstance(java.lang.String platformClassName, java.lang.ClassLoader platformClassLoader, java.lang.ClassLoader reflectionClassLoader)
public java.lang.Object getContext()
public void setContext(java.lang.Object context)
public ClassScanner newClassScanner()
public Reflection getReflection()
public Configuration newConfiguration()
public java.lang.String defaultChannelType()
public Transport newRemotingTransport()
public Transport newMessagingTransport()
public java.util.Map<java.lang.String,Transport> getMessagingTransports()
public Persistence getPersistence()
public static Reflection reflection()
public static Persistence persistence()