mardi 20 juin 2017

Is there some way to get access to Spring bean from Spock extension?

There is an example what I want to do. The service client is a Spring bean, which is retrieving from external configuration class and should be called from Spock extension.

class ServiceCleintExtension implements IGlobalExtension {

    @Autowired
    ServiceCLient client

    @Override
    void start() {
       client.execute()
    }

    ...
}

Aucun commentaire:

Enregistrer un commentaire