Class TimeConfig
java.lang.Object
com.thanlinardos.spring_enterprise_library.config.TimeConfig
@Configuration
@ComponentScan(basePackages="com.thanlinardos.spring_enterprise_library.time",
excludeFilters=)
@EnableConfigurationProperties(TimeProviderProperties.class)
public class TimeConfig
extends Object
Configuration class for time-related beans and components.
This class scans the specified package for components related to time management, excluding any classes annotated with @Configuration to avoid conflicts. It also enables configuration properties for TimeProviderProperties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontimeProvider(TimeProviderProperties properties) Creates a TimeProvider bean configured with properties from TimeProviderProperties.
-
Constructor Details
-
TimeConfig
public TimeConfig()Default constructor for TimeConfig.
-
-
Method Details
-
timeProvider
Creates a TimeProvider bean configured with properties from TimeProviderProperties.- Parameters:
properties- the TimeProviderProperties containing configuration settings- Returns:
- a configured TimeProvider instance
-