Difficult to say ...
Singleton
pattern says that at a time, there can be a single instance of object [ designed to be Singleton]. Pattern do not say that we can not recreate this instance if it has been destroyed.
in this case, object has been destroyed and therefore next request shall fetch new instance again. normally singleton objects are db connection objects, ldap connection or logger instance.
Having said, if we are destroying an singleton object once it has been created, extra care needs to be taken to avoid any unwanted null pointer exception or any kind of exception scenario.
One scenario is already shown in code.
Here, logger1 reference is set to null
Oracle certified JPA Developer (1Z0-898),Oracle certified Java 8 Programmer I (1Z0-808), Oracle Java Web Service Developer (1z0-897), Oracle certified Java 7 Programmer, SCJA 1.0, SCJP 5.0, SCWCD 5.0, Oracle SQL Fundamentals I, CIW Certified Ecommerce specialist