public class ProfilingServiceLookup
extends java.lang.Object
ProfilingService for the current Ruby instance.
Each Ruby instance has a ProfilingServiceLookup property.| Modifier and Type | Field and Description |
|---|---|
private Ruby |
runtime |
private ProfilingService |
service
The service which is configured.
|
| Constructor and Description |
|---|
ProfilingServiceLookup(Ruby runtime) |
| Modifier and Type | Method and Description |
|---|---|
private RubyInstanceConfig |
getConfig()
Getter to avoid direct property access.
|
private RubyInstanceConfig.ProfilingMode |
getProfilingMode()
Getter to avoid direct property access.
|
private Ruby |
getRuntime()
Getter to avoid direct property access.
|
ProfilingService |
getService()
Returns
runtime. |
private java.lang.String |
getServiceClassName()
Getter to avoid direct property access.
|
private java.lang.Class<? extends ProfilingService> |
loadServiceClass() |
private ProfilingService |
newProfiler()
Creates a new instance of the configured
ProfilingService instance. |
private ProfilingService |
newServiceInstance() |
private final Ruby runtime
private ProfilingService service
public ProfilingServiceLookup(Ruby runtime)
runtime - the ruby instance this instance belongs tojava.lang.IllegalArgumentException - if given runtime is nullpublic ProfilingService getService()
runtime. At first invocation newProfiler() is called to create a new instance
of the configured ProfilingService instance.ProfilingService for the runtime.private Ruby getRuntime()
private RubyInstanceConfig getConfig()
private RubyInstanceConfig.ProfilingMode getProfilingMode()
private java.lang.String getServiceClassName()
private ProfilingService newProfiler()
ProfilingService instance.private ProfilingService newServiceInstance()
private java.lang.Class<? extends ProfilingService> loadServiceClass()
ProfilingService class.