I would like to use Wirebox’s autoscan for the first time.
While previously I wrote:
map("ProductService").to( "com.company.core.model.service.ProductService" )
.asSingleton();
And than a could get the service with:
wirebox.getInstance("ProductService")
Now I have to write this, inserting the entire path:
wirebox.getInstance("com.company.core.model.service.ProductService")
this is terrible annoying
Is there a way to define an alias for classes?
An annotation as:
component accessors="true" singleton alias="ProductyService" {}
Many thanks