ryos-io / Rhino

Rhino: Dockerized Distributed Load and Performance Testing Framework
http://ryos.io
Apache License 2.0
18 stars 3 forks source link

Provider annotation does not need a factory attribute #98

Closed reevik closed 5 years ago

reevik commented 5 years ago

In Default mode, the framework has the type information from the class field, so the factory attribute becomes obsolete:

  @Provider(factory = UUIDProvider.class)
  private UUIDProvider uuidProvider;

We could omit the factory attribute:

  @Provider
  private UUIDProvider uuidProvider;
reevik commented 5 years ago

Well, it still might be handy to have a factory attribute to take advantages of polymorphic assignment.