public final class GrapheneConfigurationContext extends Object implements InvocationHandler
Context for keeping thread local context of GrapheneConfiguration.
Provides getProxy() method for accessing that context over model of your tests.
All methods on returned proxy will be invoked on GrapheneConfiguration instance associated with current thread.
Proxy specifically handles the situations when no context is set - in this situation, IllegalStateException is thrown.
| Modifier and Type | Method and Description |
|---|---|
static GrapheneConfiguration |
getProxy()
Returns the instance of proxy to thread local context of GrapheneConfiguration
|
Object |
invoke(Object proxy,
Method method,
Object[] args)
End point for handling invocations on proxy
|
static boolean |
isInitialized()
Returns true if configuration context is associated with current thread.
|
static void |
set(GrapheneConfiguration configuration)
Sets the GrapheneConfiguration context for current thread
|
public static void set(GrapheneConfiguration configuration)
configuration - the GrapheneConfiguration instancepublic static boolean isInitialized()
public static GrapheneConfiguration getProxy()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.