You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and finally I can inject connection definition into webService definition.
Hope all was clear.
Now I want to introduce extension for TyphoonDefinition to simplify this case.
Instead of adding the 2 definitions and implementing the factory class just adding the one definition:
When moving some business logic from assembly to properties file, I face with problem when I want to specify application settings in properties file.
For example, I want to specify offline mode in properties file. Let's look at how this can be done.
I have next definitions:
webService
definition requiresafnetworkConnection
/offlineConnection
definition as dependency.Then I have to create
ConnectionFactory
class:where
then, create definitions:
and finally I can inject
connection
definition intowebService
definition.Hope all was clear.
Now I want to introduce extension for TyphoonDefinition to simplify this case.
Instead of adding the 2 definitions and implementing the factory class just adding the one definition:
where "webservice.offline" - bool value.
and another method for string value:
The text was updated successfully, but these errors were encountered: