Hi,
I'm building a REST API using Dropwizard. I created a configuration setting
that holds a path prefix for image links. I have a simple POJO which
contains an icon property representing a filename in the database:
public class Tool {
private long id;
private String name;
private String icon;
@JsonProperty
public long getId() {
return id;
}
@JsonProperty
public void setId(long id) {
this.id = id;
}
@JsonProperty
public String getName() {
return name;
}
@JsonProperty
public void setName(String name) {
this.name = name;
}
* @JsonProperty*
* public String getIcon() {*
* return icon;*
* }*
@JsonProperty
public void setIcon(String icon) {
this.icon = icon;
}
}
Ideally, I would like to access the configuration value in the getIcon
method to prefix the filename value with the path value. I know how to pass
configuration values to a Dropwizard Resource but I can't figure how to
pass it to my POJO.
Thank you,
Carl
--
You received this message because you are subscribed to the Google Groups
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.