Update the Class
In this task, you will change the
DemoServices
class to extend from JsonStubs.
About this task
JsonStubs is a code generated class that initializes itself through the Spring Object Map bean
factory. You will set up a logger to view the DemoServices
class behavior
in the log4j output when logging is enabled for this package.
Procedure
- Edit the projects/purchase/rsgwextension/src/main/java/com/matrixx/rsgateway/configuration/DemoServices.java file.
-
In the first line, change the class declaration of
DemoServices
to extendJsonStubs
. Then declare a logger,m_logger
, which will be used later.public class DemoServices extends JsonStubs { /** * logger for errors and warnings */ private final Logger m_logger = LoggerFactory.getLogger(getClass()); … … }
- Save the file.