Class RentersConfiguration
java.lang.Object
info.ejava.assignments.testing.rentals.renters.RentersConfiguration
@Configuration
@ConditionalOnProperty(prefix="renters",
name="active",
havingValue="true",
matchIfMissing=true)
public class RentersConfiguration
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrentersService
(RentersProperties props, RenterValidator validator)
-
Constructor Details
-
RentersConfiguration
public RentersConfiguration()
-
-
Method Details
-
renterProperties
@Bean @ConditionalOnMissingBean @ConfigurationProperties("rentals.renters") public RentersProperties renterProperties() -
renterValidator
-
rentersService
@Bean @ConditionalOnMissingBean public RentersService rentersService(RentersProperties props, RenterValidator validator)
-