public static LifecycleInjectorBuilder fromModules(List<Module> modules) {
    ServiceLoader<LifecycleInjectorBuilder> builderLoader =
        ServiceLoader.load(LifecycleInjectorBuilder.class);

    // Default to the governator implementation if present
    for (LifecycleInjectorBuilder builder : builderLoader) {
      if (builder.getClass().getName()
          .equals("com.cerner.beadledom.lifecycle.governator.GovernatorLifecycleInjectorBuilder")) {
        return builder.modules(modules);
      }
    }

    // If the governator service provider is not found, default to beadledom Java 6 implementation.
    return new BeadledomLifecycleInjectorBuilder().modules(modules);
  }
public static LifecycleInjectorBuilder fromModules ( List < Module > modules ) { ServiceLoader < LifecycleInjectorBuilder > builderLoader = ServiceLoader . load ( LifecycleInjectorBuilder . class ) ; for ( LifecycleInjectorBuilder builder : builderLoader ) { if ( builder . getClass ( ) . getName ( ) . equals ( "com.cerner.beadledom.lifecycle.governator.GovernatorLifecycleInjectorBuilder" ) ) { return builder . modules ( modules ) ; } } return new BeadledomLifecycleInjectorBuilder ( ) . modules ( modules ) ; }
Creates a new instance of {@link LifecycleInjectorBuilder} with the specified modules.

@param modules the Guice modules to use for the injector builder.