Java 类com.facebook.react.bridge.queue.ReactQueueConfiguration 实例源码

项目:RNLearn_Project1    文件:ReactContext.java   
/**
 * Set and initialize CatalystInstance for this Context. This should be called exactly once.
 */
public void initializeWithInstance(CatalystInstance catalystInstance) {
  if (catalystInstance == null) {
    throw new IllegalArgumentException("CatalystInstance cannot be null.");
  }
  if (mCatalystInstance != null) {
    throw new IllegalStateException("ReactContext has been already initialized");
  }

  mCatalystInstance = catalystInstance;

  ReactQueueConfiguration queueConfig = catalystInstance.getReactQueueConfiguration();
  mUiMessageQueueThread = queueConfig.getUIQueueThread();
  mNativeModulesMessageQueueThread = queueConfig.getNativeModulesQueueThread();
  mJSMessageQueueThread = queueConfig.getJSQueueThread();
}
项目:RNLearn_Project1    文件:ReactTestHelper.java   
/**
 * @return a CatalystInstance mock that has a default working ReactQueueConfiguration.
 */
public static CatalystInstance createMockCatalystInstance() {
  ReactQueueConfigurationSpec spec = ReactQueueConfigurationSpec.builder()
      .setJSQueueThreadSpec(MessageQueueThreadSpec.mainThreadSpec())
      .setNativeModulesQueueThreadSpec(MessageQueueThreadSpec.mainThreadSpec())
      .build();
  ReactQueueConfiguration ReactQueueConfiguration = ReactQueueConfigurationImpl.create(
      spec,
      new QueueThreadExceptionHandler() {
        @Override
        public void handleException(Exception e) {
          throw new RuntimeException(e);
        }
      });

  CatalystInstance reactInstance = mock(CatalystInstance.class);
  when(reactInstance.getReactQueueConfiguration()).thenReturn(ReactQueueConfiguration);
  when(reactInstance.getNativeModule(UIManagerModule.class))
      .thenReturn(mock(UIManagerModule.class));

  return reactInstance;
}
项目:RNLearn_Project1    文件:ReactContext.java   
/**
 * Set and initialize CatalystInstance for this Context. This should be called exactly once.
 */
public void initializeWithInstance(CatalystInstance catalystInstance) {
  if (catalystInstance == null) {
    throw new IllegalArgumentException("CatalystInstance cannot be null.");
  }
  if (mCatalystInstance != null) {
    throw new IllegalStateException("ReactContext has been already initialized");
  }

  mCatalystInstance = catalystInstance;

  ReactQueueConfiguration queueConfig = catalystInstance.getReactQueueConfiguration();
  mUiMessageQueueThread = queueConfig.getUIQueueThread();
  mNativeModulesMessageQueueThread = queueConfig.getNativeModulesQueueThread();
  mJSMessageQueueThread = queueConfig.getJSQueueThread();
}
项目:RNLearn_Project1    文件:ReactTestHelper.java   
/**
 * @return a CatalystInstance mock that has a default working ReactQueueConfiguration.
 */
public static CatalystInstance createMockCatalystInstance() {
  ReactQueueConfigurationSpec spec = ReactQueueConfigurationSpec.builder()
      .setJSQueueThreadSpec(MessageQueueThreadSpec.mainThreadSpec())
      .setNativeModulesQueueThreadSpec(MessageQueueThreadSpec.mainThreadSpec())
      .build();
  ReactQueueConfiguration ReactQueueConfiguration = ReactQueueConfigurationImpl.create(
      spec,
      new QueueThreadExceptionHandler() {
        @Override
        public void handleException(Exception e) {
          throw new RuntimeException(e);
        }
      });

  CatalystInstance reactInstance = mock(CatalystInstance.class);
  when(reactInstance.getReactQueueConfiguration()).thenReturn(ReactQueueConfiguration);
  when(reactInstance.getNativeModule(UIManagerModule.class))
      .thenReturn(mock(UIManagerModule.class));

  return reactInstance;
}
项目:ReactNativeSignatureExample    文件:ReactContext.java   
/**
 * Set and initialize CatalystInstance for this Context. This should be called exactly once.
 */
public void initializeWithInstance(CatalystInstance catalystInstance) {
  if (catalystInstance == null) {
    throw new IllegalArgumentException("CatalystInstance cannot be null.");
  }
  if (mCatalystInstance != null) {
    throw new IllegalStateException("ReactContext has been already initialized");
  }

  mCatalystInstance = catalystInstance;

  ReactQueueConfiguration queueConfig = catalystInstance.getReactQueueConfiguration();
  mUiMessageQueueThread = queueConfig.getUIQueueThread();
  mNativeModulesMessageQueueThread = queueConfig.getNativeModulesQueueThread();
  mJSMessageQueueThread = queueConfig.getJSQueueThread();
}
项目:ReactNativeSignatureExample    文件:ReactTestHelper.java   
/**
 * @return a CatalystInstance mock that has a default working ReactQueueConfiguration.
 */
public static CatalystInstance createMockCatalystInstance() {
  ReactQueueConfigurationSpec spec = ReactQueueConfigurationSpec.builder()
      .setJSQueueThreadSpec(MessageQueueThreadSpec.mainThreadSpec())
      .setNativeModulesQueueThreadSpec(MessageQueueThreadSpec.mainThreadSpec())
      .build();
  ReactQueueConfiguration ReactQueueConfiguration = ReactQueueConfigurationImpl.create(
      spec,
      new QueueThreadExceptionHandler() {
        @Override
        public void handleException(Exception e) {
          throw new RuntimeException(e);
        }
      });

  CatalystInstance reactInstance = mock(CatalystInstance.class);
  when(reactInstance.getReactQueueConfiguration()).thenReturn(ReactQueueConfiguration);
  when(reactInstance.getNativeModule(UIManagerModule.class))
      .thenReturn(mock(UIManagerModule.class));

  return reactInstance;
}
项目:react-native-ibeacon-android    文件:ReactContext.java   
/**
 * Set and initialize CatalystInstance for this Context. This should be called exactly once.
 */
public void initializeWithInstance(CatalystInstance catalystInstance) {
  if (catalystInstance == null) {
    throw new IllegalArgumentException("CatalystInstance cannot be null.");
  }
  if (mCatalystInstance != null) {
    throw new IllegalStateException("ReactContext has been already initialized");
  }

  mCatalystInstance = catalystInstance;

  ReactQueueConfiguration queueConfig = catalystInstance.getReactQueueConfiguration();
  mUiMessageQueueThread = queueConfig.getUIQueueThread();
  mNativeModulesMessageQueueThread = queueConfig.getNativeModulesQueueThread();
  mJSMessageQueueThread = queueConfig.getJSQueueThread();
}
项目:react-native-ibeacon-android    文件:ReactTestHelper.java   
/**
 * @return a CatalystInstance mock that has a default working ReactQueueConfiguration.
 */
public static CatalystInstance createMockCatalystInstance() {
  ReactQueueConfigurationSpec spec = ReactQueueConfigurationSpec.builder()
      .setJSQueueThreadSpec(MessageQueueThreadSpec.mainThreadSpec())
      .setNativeModulesQueueThreadSpec(MessageQueueThreadSpec.mainThreadSpec())
      .build();
  ReactQueueConfiguration ReactQueueConfiguration = ReactQueueConfigurationImpl.create(
      spec,
      new QueueThreadExceptionHandler() {
        @Override
        public void handleException(Exception e) {
          throw new RuntimeException(e);
        }
      });

  CatalystInstance reactInstance = mock(CatalystInstance.class);
  when(reactInstance.getReactQueueConfiguration()).thenReturn(ReactQueueConfiguration);
  when(reactInstance.getNativeModule(UIManagerModule.class))
      .thenReturn(mock(UIManagerModule.class));

  return reactInstance;
}
项目:react-native-box-loaders    文件:ReactContext.java   
/**
 * Set and initialize CatalystInstance for this Context. This should be called exactly once.
 */
public void initializeWithInstance(CatalystInstance catalystInstance) {
  if (catalystInstance == null) {
    throw new IllegalArgumentException("CatalystInstance cannot be null.");
  }
  if (mCatalystInstance != null) {
    throw new IllegalStateException("ReactContext has been already initialized");
  }

  mCatalystInstance = catalystInstance;

  ReactQueueConfiguration queueConfig = catalystInstance.getReactQueueConfiguration();
  mUiMessageQueueThread = queueConfig.getUIQueueThread();
  mNativeModulesMessageQueueThread = queueConfig.getNativeModulesQueueThread();
  mJSMessageQueueThread = queueConfig.getJSQueueThread();
}
项目:react-native-box-loaders    文件:ReactTestHelper.java   
/**
 * @return a CatalystInstance mock that has a default working ReactQueueConfiguration.
 */
public static CatalystInstance createMockCatalystInstance() {
  ReactQueueConfigurationSpec spec = ReactQueueConfigurationSpec.builder()
      .setJSQueueThreadSpec(MessageQueueThreadSpec.mainThreadSpec())
      .setNativeModulesQueueThreadSpec(MessageQueueThreadSpec.mainThreadSpec())
      .build();
  ReactQueueConfiguration ReactQueueConfiguration = ReactQueueConfigurationImpl.create(
      spec,
      new QueueThreadExceptionHandler() {
        @Override
        public void handleException(Exception e) {
          throw new RuntimeException(e);
        }
      });

  CatalystInstance reactInstance = mock(CatalystInstance.class);
  when(reactInstance.getReactQueueConfiguration()).thenReturn(ReactQueueConfiguration);
  when(reactInstance.getNativeModule(UIManagerModule.class))
      .thenReturn(mock(UIManagerModule.class));

  return reactInstance;
}
项目:Ironman    文件:ReactContext.java   
/**
 * Set and initialize CatalystInstance for this Context. This should be called exactly once.
 */
public void initializeWithInstance(CatalystInstance catalystInstance) {
  if (catalystInstance == null) {
    throw new IllegalArgumentException("CatalystInstance cannot be null.");
  }
  if (mCatalystInstance != null) {
    throw new IllegalStateException("ReactContext has been already initialized");
  }

  mCatalystInstance = catalystInstance;

  ReactQueueConfiguration queueConfig = catalystInstance.getReactQueueConfiguration();
  mUiMessageQueueThread = queueConfig.getUIQueueThread();
  mNativeModulesMessageQueueThread = queueConfig.getNativeModulesQueueThread();
  mJSMessageQueueThread = queueConfig.getJSQueueThread();
}
项目:Ironman    文件:ReactTestHelper.java   
/**
 * @return a CatalystInstance mock that has a default working ReactQueueConfiguration.
 */
public static CatalystInstance createMockCatalystInstance() {
  ReactQueueConfigurationSpec spec = ReactQueueConfigurationSpec.builder()
      .setJSQueueThreadSpec(MessageQueueThreadSpec.mainThreadSpec())
      .setNativeModulesQueueThreadSpec(MessageQueueThreadSpec.mainThreadSpec())
      .build();
  ReactQueueConfiguration ReactQueueConfiguration = ReactQueueConfigurationImpl.create(
      spec,
      new QueueThreadExceptionHandler() {
        @Override
        public void handleException(Exception e) {
          throw new RuntimeException(e);
        }
      });

  CatalystInstance reactInstance = mock(CatalystInstance.class);
  when(reactInstance.getReactQueueConfiguration()).thenReturn(ReactQueueConfiguration);
  when(reactInstance.getNativeModule(UIManagerModule.class))
      .thenReturn(mock(UIManagerModule.class));

  return reactInstance;
}
项目:RNLearn_Project1    文件:CatalystInstanceImpl.java   
@Override
public ReactQueueConfiguration getReactQueueConfiguration() {
  return mReactQueueConfiguration;
}
项目:RNLearn_Project1    文件:CatalystInstanceImpl.java   
@Override
public ReactQueueConfiguration getReactQueueConfiguration() {
  return mReactQueueConfiguration;
}
项目:ReactNativeSignatureExample    文件:CatalystInstanceImpl.java   
@Override
public ReactQueueConfiguration getReactQueueConfiguration() {
  return mReactQueueConfiguration;
}
项目:react-native-ibeacon-android    文件:CatalystInstanceImpl.java   
@Override
public ReactQueueConfiguration getReactQueueConfiguration() {
  return mReactQueueConfiguration;
}
项目:react-native-box-loaders    文件:CatalystInstanceImpl.java   
@Override
public ReactQueueConfiguration getReactQueueConfiguration() {
  return mReactQueueConfiguration;
}
项目:Ironman    文件:CatalystInstanceImpl.java   
@Override
public ReactQueueConfiguration getReactQueueConfiguration() {
  return mReactQueueConfiguration;
}
项目:RNLearn_Project1    文件:CatalystInstance.java   
ReactQueueConfiguration getReactQueueConfiguration();
项目:RNLearn_Project1    文件:CatalystInstance.java   
ReactQueueConfiguration getReactQueueConfiguration();
项目:ReactNativeSignatureExample    文件:CatalystInstance.java   
ReactQueueConfiguration getReactQueueConfiguration();
项目:react-native-ibeacon-android    文件:CatalystInstance.java   
ReactQueueConfiguration getReactQueueConfiguration();
项目:react-native-box-loaders    文件:CatalystInstance.java   
ReactQueueConfiguration getReactQueueConfiguration();
项目:Ironman    文件:CatalystInstance.java   
ReactQueueConfiguration getReactQueueConfiguration();