Class BringWebApplication

java.lang.Object
com.bobocode.bring.web.BringWebApplication

public class BringWebApplication extends Object
The BringWebApplication class provides static methods for running the Bring application context. It offers several ways to initialize and configure the application context based on different parameters.

The Bring application context includes packages for core components, web components, and additional packages specified during the initialization.

Since:
1.0
Author:
Blyzhnytsia Team
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final String
     
    private static final String
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static String[]
    basePackages(String... basePackage)
     
    static com.bobocode.bring.core.context.impl.BringApplicationContext
    run(Class<?> clazz)
    Run the Bring application context based on the provided configuration class.
    static com.bobocode.bring.core.context.impl.BringApplicationContext
    run(String basePackage)
    Run the Bring application context based on the provided base package for component scanning.
    static com.bobocode.bring.core.context.impl.BringApplicationContext
    run(String... basePackages)
    Run the Bring application context based on the provided base package for component scanning.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • BringWebApplication

      private BringWebApplication()
  • Method Details

    • run

      public static com.bobocode.bring.core.context.impl.BringApplicationContext run(String basePackage)
      Run the Bring application context based on the provided base package for component scanning.
      Parameters:
      basePackage - the base package to scan for annotated beans
      Returns:
      the initialized BringApplicationContext instance
      See Also:
      • BringApplicationContext
    • run

      public static com.bobocode.bring.core.context.impl.BringApplicationContext run(Class<?> clazz)
      Run the Bring application context based on the provided configuration class.
      Parameters:
      clazz - the class containing configuration information and annotated beans
      Returns:
      the initialized BringApplicationContext instance
      See Also:
      • BringApplicationContext
    • run

      public static com.bobocode.bring.core.context.impl.BringApplicationContext run(String... basePackages)
      Run the Bring application context based on the provided base package for component scanning.
      Parameters:
      basePackages - the base packages to scan for annotated beans
      Returns:
      the initialized BringApplicationContext instance
    • basePackages

      private static String[] basePackages(String... basePackage)