Untitled

 avatar
unknown
plain_text
a year ago
762 B
6
Indexable
/**
 * The type Cloud bean.
 */
@Configuration
@RequiredArgsConstructor
public class CloudBean {

    /**
     * Cloud persistence port cloud persistence port.
     *
     * @param repository the repository
     * @return the cloud persistence port
     */
    @Bean
    @Primary
    public CloudPersistencePort cloudPersistencePort(CloudRepository repository) {
        return new CloudR2dbcAdapter(repository);
    }

    /**
     * Cloud service cloud service port.
     *
     * @param cloudPersistence the cloud persistence
     * @return the cloud service port
     */
    @Bean
    public CloudServicePort cloudService(CloudPersistencePort cloudPersistence) {
        return new CloudServicePortImpl(cloudPersistence);
    }
}
Editor is loading...
Leave a Comment