Advertisement
Guest User

reportEventsCommand

a guest
Aug 2nd, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public class ReportEventsCommand implements Executable {
  2.  
  3. @Inject
  4. private static Writer writer;
  5.  
  6. private static boolean shouldReport = false;
  7.  
  8. public ReportEventsCommand() {
  9. }
  10.  
  11. public boolean shouldReport() {
  12. return shouldReport;
  13. }
  14.  
  15. public Writer getWriter() {
  16. return writer;
  17. }
  18.  
  19. @Override
  20. public void execute() {
  21. shouldReport = true;
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement