public static LocalContext getLocalContextInstance(RubyInstanceConfig config, LocalVariableBehavior behavior, boolean lazy) { if (localContext == null) { synchronized (LocalContext.class) { localContext = new LocalContext(config, behavior, lazy); } } return localContext; }
public static LocalContext getLocalContextInstance(RubyInstanceConfig config, LocalVariableBehavior behavior, boolean lazy) { if (localContext == null) { synchronized (LocalContext.class) { localContext = new LocalContext(config, behavior, lazy); } } return localContext; }
protected LocalContext getInstance() { return new LocalContext(config, behavior, lazy); }
protected LocalContext getInstance() { return new LocalContext(config, behavior, lazy); }
protected LocalContext getInstance() { return new LocalContext(config, behavior, lazy); }
protected LocalContext getInstance() { return new LocalContext(config, behavior, lazy); }
@Deprecated // no longer used public static LocalContext getLocalContextInstance(RubyInstanceConfig config, LocalVariableBehavior behavior, boolean lazy) { if (localContext == null) { synchronized( SingletonLocalContextProvider.class ) { if (localContext == null) { localContext = new LocalContext(config, behavior, lazy); } } } return localContext; }
@Deprecated // no longer used public static LocalContext getLocalContextInstance(RubyInstanceConfig config, LocalVariableBehavior behavior, boolean lazy) { if (localContext == null) { synchronized( SingletonLocalContextProvider.class ) { if (localContext == null) { localContext = new LocalContext(config, behavior, lazy); } } } return localContext; }
private static void initLocalContext(final LocalVariableBehavior behavior, final boolean lazy) { synchronized( SingletonLocalContextProvider.class ) { if (localContext == null) { localContext = new LocalContext(getGlobalRuntimeConfigOrNew(), behavior, lazy); } } }
private static void initLocalContext(final LocalVariableBehavior behavior, final boolean lazy) { synchronized( SingletonLocalContextProvider.class ) { if (localContext == null) { localContext = new LocalContext(getGlobalRuntimeConfigOrNew(), behavior, lazy); } } }