Skip to content

Instantly share code, notes, and snippets.

@athiththan11
Last active July 6, 2019 08:17
Show Gist options
  • Save athiththan11/07ca06da6eae5cd1019f3c57762c8aec to your computer and use it in GitHub Desktop.
Save athiththan11/07ca06da6eae5cd1019f3c57762c8aec to your computer and use it in GitHub Desktop.
Fabricator OSGi Component to generate and provide details about the OS and logged-in User
public class Fact {
private String username;
private String os;
public Fact(String username, String os) {
this.setUsername(username);
this.setOs(os);
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getOs() {
return os;
}
public void setOs(String os) {
this.os = os;
}
@Override
public String toString() {
return "Fact [os=" + os + ", username=" + username + "]";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment