Add resource info to beans in injection reports

This commit is contained in:
Kris De Volder
2017-11-03 09:58:06 -07:00
parent 443b8ad62f
commit a70bc1a77f
15 changed files with 289 additions and 29 deletions

View File

@@ -51,6 +51,20 @@ public class LiveBean {
this.dependencies = deps;
return this;
}
private Builder resource(String resource) {
this.resource = resource;
return this;
}
public Builder fileResource(String path) {
return resource("file ["+path+"]");
}
public Builder classpathResource(String path) {
return resource("class path resource ["+path+"]");
}
}
protected LiveBean(String id, String[] aliases, String scope, String type, String resource, String[] dependencies) {