Package com.bobocode.bring.web
Class BringWebApplication
java.lang.Object
com.bobocode.bring.web.BringWebApplication
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static String[]
basePackages
(String... basePackage) static com.bobocode.bring.core.context.impl.BringApplicationContext
Run the Bring application context based on the provided configuration class.static com.bobocode.bring.core.context.impl.BringApplicationContext
Run the Bring application context based on the provided base package for component scanning.static com.bobocode.bring.core.context.impl.BringApplicationContext
Run the Bring application context based on the provided base package for component scanning.
-
Field Details
-
BRING_CORE_PACKAGE
- See Also:
-
BRING_WEB_PACKAGE
- See Also:
-
-
Constructor Details
-
BringWebApplication
private BringWebApplication()
-
-
Method Details
-
run
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:
-
run
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:
-
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
-