├── Chapter02 └── Chapter2 │ ├── Chapter2 │ ├── .DS_Store │ ├── .classpath │ ├── .project │ ├── .settings │ │ └── org.eclipse.jdt.core.prefs │ ├── bin │ │ └── com │ │ │ ├── builder │ │ │ ├── Car.class │ │ │ ├── CarBuilder.class │ │ │ └── CarBuilderDirector.class │ │ │ ├── factory │ │ │ ├── factorymethod │ │ │ │ ├── Bike.class │ │ │ │ ├── Car.class │ │ │ │ ├── CarFactory.class │ │ │ │ ├── CityBike.class │ │ │ │ ├── LargeTruck.class │ │ │ │ ├── MountainBike.class │ │ │ │ ├── Mycode$1.class │ │ │ │ ├── Mycode.class │ │ │ │ ├── SedanCar.class │ │ │ │ ├── SmallTruck.class │ │ │ │ ├── SportCar.class │ │ │ │ ├── Truck.class │ │ │ │ ├── TruckFactory.class │ │ │ │ ├── Vehicle.class │ │ │ │ └── VehicleFactory.class │ │ │ └── staticfactory │ │ │ │ ├── Bike.class │ │ │ │ ├── Car.class │ │ │ │ ├── Truck.class │ │ │ │ ├── Vehicle.class │ │ │ │ ├── VehicleFactory$VehicleType.class │ │ │ │ └── VehicleFactory.class │ │ │ └── singleton │ │ │ ├── LockFreeSingleton.class │ │ │ ├── MyClass.class │ │ │ └── Singleton.class │ └── src │ │ └── com │ │ ├── builder │ │ ├── Car.java │ │ ├── CarBuilder.java │ │ └── CarBuilderDirector.java │ │ ├── factory │ │ ├── factorymethod │ │ │ ├── CarFactory.java │ │ │ ├── Mycode.java │ │ │ ├── TruckFactory.java │ │ │ └── VehicleFactory.java │ │ └── staticfactory │ │ │ └── VehicleFactory.java │ │ └── singleton │ │ ├── LockFreeSingleton.java │ │ ├── MyClass.java │ │ └── Singleton.java │ └── __MACOSX │ └── Chapter2 │ └── ._.DS_Store ├── Chapter03 └── Chapter3 │ ├── .classpath │ ├── .project │ ├── .settings │ └── org.eclipse.jdt.core.prefs │ ├── bin │ └── com │ │ └── chapter3 │ │ ├── interpreter │ │ ├── Evaluator.class │ │ ├── Expression.class │ │ ├── Minus.class │ │ ├── Number.class │ │ └── Plus.class │ │ ├── iterator │ │ ├── Aggregate.class │ │ ├── Iterator.class │ │ ├── Main.class │ │ ├── StringArray$StringArrayIterator.class │ │ └── StringArray.class │ │ └── memento │ │ ├── CarCaretaker.class │ │ ├── CarOriginator$Memento.class │ │ └── CarOriginator.class │ └── src │ └── com │ └── chapter3 │ ├── interpreter │ ├── Evaluator.java │ ├── Expression.java │ ├── Minus.java │ ├── Number.java │ └── Plus.java │ ├── iterator │ ├── Aggregate.java │ ├── Iterator.java │ ├── Main.java │ └── StringArray.java │ └── memento │ ├── CarCaretaker.java │ └── CarOriginator.java ├── Chapter04 └── chapter4_source │ ├── pom.xml │ └── src │ └── main │ └── java │ └── gof │ └── structural │ ├── adapter │ └── Main.java │ ├── bridge │ └── Main.java │ ├── composite │ └── Main.java │ ├── decorator │ └── Main.java │ ├── facade │ └── Main.java │ ├── flyweight │ └── Main.java │ └── proxy │ └── Main.java ├── Chapter05 └── chapter5_source │ ├── pom.xml │ └── src │ └── main │ └── java │ └── chapter5 │ ├── execute_around │ └── Main.java │ ├── memoization │ └── Main.java │ └── tco │ └── Main.java ├── Chapter06 └── chapter6_source │ ├── chapter6 │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── packt │ │ │ └── java9 │ │ │ └── chapter6 │ │ │ ├── Chapter6Application.java │ │ │ ├── SensorController.java │ │ │ └── SensorData.java │ │ └── resources │ │ └── application.properties │ └── chapter6_client │ ├── pom.xml │ └── src │ └── main │ └── java │ └── chapter6_client │ └── Main.java ├── Chapter07 └── Chapter_7_Code │ ├── AynchronousReporting │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── .jsdtscope │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── org.eclipse.wst.common.component │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ ├── org.eclipse.wst.jsdt.ui.superType.container │ │ ├── org.eclipse.wst.jsdt.ui.superType.name │ │ └── org.eclipse.wst.validation.prefs │ ├── WebContent │ │ ├── META-INF │ │ │ └── MANIFEST.MF │ │ └── WEB-INF │ │ │ └── web.xml │ ├── build │ │ └── classes │ │ │ └── com │ │ │ └── employee │ │ │ ├── config │ │ │ └── EmployeeConfig.class │ │ │ └── service │ │ │ ├── Employee.class │ │ │ └── EmployeeWebService.class │ ├── pom.xml │ ├── src │ │ └── com │ │ │ └── employee │ │ │ ├── config │ │ │ └── EmployeeConfig.java │ │ │ └── service │ │ │ └── EmployeeWebService.java │ └── target │ │ ├── AsynchronousReporting-0.0.1-SNAPSHOT.war │ │ ├── AsynchronousReporting-0.0.1-SNAPSHOT │ │ ├── META-INF │ │ │ └── MANIFEST.MF │ │ └── WEB-INF │ │ │ ├── classes │ │ │ └── com │ │ │ │ └── employee │ │ │ │ ├── config │ │ │ │ └── EmployeeConfig.class │ │ │ │ └── service │ │ │ │ ├── EmailUtil.class │ │ │ │ ├── Employee.class │ │ │ │ ├── EmployeeService.class │ │ │ │ ├── EmployeeWebService.class │ │ │ │ └── ReportUtil.class │ │ │ ├── lib │ │ │ ├── commons-logging-1.2.jar │ │ │ ├── jackson-annotations-2.5.0.jar │ │ │ ├── jackson-core-2.5.0.jar │ │ │ ├── jackson-databind-2.5.0.jar │ │ │ ├── jjwt-0.7.0.jar │ │ │ ├── spring-aop-4.3.9.RELEASE.jar │ │ │ ├── spring-beans-4.3.9.RELEASE.jar │ │ │ ├── spring-context-4.3.9.RELEASE.jar │ │ │ ├── spring-core-4.3.9.RELEASE.jar │ │ │ ├── spring-expression-4.3.9.RELEASE.jar │ │ │ ├── spring-web-4.3.9.RELEASE.jar │ │ │ └── spring-webmvc-4.3.9.RELEASE.jar │ │ │ └── web.xml │ │ ├── classes │ │ └── com │ │ │ └── employee │ │ │ ├── config │ │ │ └── EmployeeConfig.class │ │ │ └── service │ │ │ ├── EmailUtil.class │ │ │ ├── Employee.class │ │ │ ├── EmployeeService.class │ │ │ ├── EmployeeWebService.class │ │ │ └── ReportUtil.class │ │ ├── m2e-wtp │ │ └── web-resources │ │ │ └── META-INF │ │ │ ├── MANIFEST.MF │ │ │ └── maven │ │ │ └── AsynchronousReporting │ │ │ └── AsynchronousReporting │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ ├── maven-archiver │ │ └── pom.properties │ │ └── maven-status │ │ └── maven-compiler-plugin │ │ └── compile │ │ └── default-compile │ │ ├── createdFiles.lst │ │ └── inputFiles.lst │ ├── EmployeeServlet │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── .jsdtscope │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── org.eclipse.wst.common.component │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ ├── org.eclipse.wst.jsdt.ui.superType.container │ │ ├── org.eclipse.wst.jsdt.ui.superType.name │ │ └── org.eclipse.wst.validation.prefs │ ├── WebContent │ │ ├── META-INF │ │ │ └── MANIFEST.MF │ │ └── WEB-INF │ │ │ └── web.xml │ ├── build │ │ └── classes │ │ │ └── com │ │ │ └── employee │ │ │ └── service │ │ │ └── EmployeeWebService.class │ ├── pom.xml │ ├── src │ │ └── com │ │ │ └── employee │ │ │ └── service │ │ │ └── EmployeeWebService.java │ └── target │ │ ├── EmployeeServlet-0.0.1-SNAPSHOT.war │ │ ├── EmployeeServlet-0.0.1-SNAPSHOT │ │ ├── META-INF │ │ │ └── MANIFEST.MF │ │ └── WEB-INF │ │ │ ├── classes │ │ │ └── com │ │ │ │ └── employee │ │ │ │ └── service │ │ │ │ └── EmployeeWebService.class │ │ │ ├── lib │ │ │ └── json-simple-1.1.jar │ │ │ └── web.xml │ │ ├── classes │ │ └── com │ │ │ └── employee │ │ │ └── service │ │ │ └── EmployeeWebService.class │ │ ├── m2e-wtp │ │ └── web-resources │ │ │ └── META-INF │ │ │ ├── MANIFEST.MF │ │ │ └── maven │ │ │ └── EmployeeServlet │ │ │ └── EmployeeServlet │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ ├── maven-archiver │ │ └── pom.properties │ │ └── maven-status │ │ └── maven-compiler-plugin │ │ └── compile │ │ └── default-compile │ │ ├── createdFiles.lst │ │ └── inputFiles.lst │ ├── JWTExample │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── org.eclipse.jdt.core.prefs │ │ └── org.eclipse.m2e.core.prefs │ ├── bin │ │ └── JWTService.class │ ├── pom.xml │ ├── src │ │ └── com │ │ │ └── employee │ │ │ ├── main │ │ │ └── JWTMain.java │ │ │ ├── model │ │ │ └── User.java │ │ │ └── service │ │ │ └── JWTService.java │ └── target │ │ └── classes │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── JWTExample │ │ │ └── JWTExample │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ └── com │ │ └── employee │ │ ├── main │ │ └── JWTMain.class │ │ ├── model │ │ └── User.class │ │ └── service │ │ └── JWTService.class │ ├── SpringMVCEmployeeService │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── .jsdtscope │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── org.eclipse.wst.common.component │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ ├── org.eclipse.wst.jsdt.ui.superType.container │ │ ├── org.eclipse.wst.jsdt.ui.superType.name │ │ └── org.eclipse.wst.validation.prefs │ ├── WebContent │ │ ├── META-INF │ │ │ └── MANIFEST.MF │ │ └── WEB-INF │ │ │ └── web.xml │ ├── build │ │ └── classes │ │ │ └── com │ │ │ └── employee │ │ │ └── service │ │ │ └── EmployeeWebService.class │ ├── pom.xml │ ├── src │ │ └── com │ │ │ └── employee │ │ │ ├── config │ │ │ └── EmployeeConfig.java │ │ │ └── service │ │ │ └── EmployeeWebService.java │ └── target │ │ ├── SpringMVCEmployeeService-0.0.1-SNAPSHOT.war │ │ ├── SpringMVCEmployeeService-0.0.1-SNAPSHOT │ │ ├── META-INF │ │ │ └── MANIFEST.MF │ │ └── WEB-INF │ │ │ ├── classes │ │ │ └── com │ │ │ │ └── employee │ │ │ │ ├── config │ │ │ │ └── EmployeeConfig.class │ │ │ │ └── service │ │ │ │ ├── Employee.class │ │ │ │ └── EmployeeWebService.class │ │ │ ├── lib │ │ │ ├── commons-logging-1.2.jar │ │ │ ├── jackson-annotations-2.5.0.jar │ │ │ ├── jackson-core-2.5.0.jar │ │ │ ├── jackson-databind-2.5.0.jar │ │ │ ├── jjwt-0.7.0.jar │ │ │ ├── spring-aop-4.3.9.RELEASE.jar │ │ │ ├── spring-beans-4.3.9.RELEASE.jar │ │ │ ├── spring-context-4.3.9.RELEASE.jar │ │ │ ├── spring-core-4.3.9.RELEASE.jar │ │ │ ├── spring-expression-4.3.9.RELEASE.jar │ │ │ ├── spring-web-4.3.9.RELEASE.jar │ │ │ └── spring-webmvc-4.3.9.RELEASE.jar │ │ │ └── web.xml │ │ ├── classes │ │ └── com │ │ │ └── employee │ │ │ ├── config │ │ │ └── EmployeeConfig.class │ │ │ └── service │ │ │ ├── Employee.class │ │ │ ├── EmployeeDAO.class │ │ │ └── EmployeeWebService.class │ │ ├── m2e-wtp │ │ └── web-resources │ │ │ └── META-INF │ │ │ ├── MANIFEST.MF │ │ │ └── maven │ │ │ └── SpringMVCEmployeeService │ │ │ └── SpringMVCEmployeeService │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ ├── maven-archiver │ │ └── pom.properties │ │ └── maven-status │ │ └── maven-compiler-plugin │ │ └── compile │ │ └── default-compile │ │ ├── createdFiles.lst │ │ └── inputFiles.lst │ ├── SpringMVCEmployeeServiceWithCache │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── .jsdtscope │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── org.eclipse.wst.common.component │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ ├── org.eclipse.wst.jsdt.ui.superType.container │ │ ├── org.eclipse.wst.jsdt.ui.superType.name │ │ └── org.eclipse.wst.validation.prefs │ ├── WebContent │ │ ├── META-INF │ │ │ └── MANIFEST.MF │ │ └── WEB-INF │ │ │ └── web.xml │ ├── build │ │ └── classes │ │ │ └── com │ │ │ └── employee │ │ │ └── service │ │ │ └── EmployeeWebService.class │ ├── pom.xml │ ├── src │ │ └── com │ │ │ └── employee │ │ │ ├── config │ │ │ └── EmployeeConfig.java │ │ │ └── service │ │ │ └── EmployeeWebService.java │ └── target │ │ ├── SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT.war │ │ ├── SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT │ │ ├── META-INF │ │ │ └── MANIFEST.MF │ │ └── WEB-INF │ │ │ ├── classes │ │ │ └── com │ │ │ │ └── employee │ │ │ │ ├── config │ │ │ │ └── EmployeeConfig.class │ │ │ │ └── service │ │ │ │ ├── Employee.class │ │ │ │ ├── EmployeeCache.class │ │ │ │ ├── EmployeeService.class │ │ │ │ └── EmployeeWebService.class │ │ │ ├── lib │ │ │ ├── commons-logging-1.2.jar │ │ │ ├── jackson-annotations-2.5.0.jar │ │ │ ├── jackson-core-2.5.0.jar │ │ │ ├── jackson-databind-2.5.0.jar │ │ │ ├── jjwt-0.7.0.jar │ │ │ ├── spring-aop-4.3.9.RELEASE.jar │ │ │ ├── spring-beans-4.3.9.RELEASE.jar │ │ │ ├── spring-context-4.3.9.RELEASE.jar │ │ │ ├── spring-core-4.3.9.RELEASE.jar │ │ │ ├── spring-expression-4.3.9.RELEASE.jar │ │ │ ├── spring-web-4.3.9.RELEASE.jar │ │ │ └── spring-webmvc-4.3.9.RELEASE.jar │ │ │ └── web.xml │ │ ├── classes │ │ └── com │ │ │ └── employee │ │ │ ├── config │ │ │ └── EmployeeConfig.class │ │ │ └── service │ │ │ ├── Employee.class │ │ │ ├── EmployeeCache.class │ │ │ ├── EmployeeService.class │ │ │ └── EmployeeWebService.class │ │ ├── m2e-wtp │ │ └── web-resources │ │ │ └── META-INF │ │ │ ├── MANIFEST.MF │ │ │ └── maven │ │ │ └── SpringMVCEmployeeServiceWithCache │ │ │ └── SpringMVCEmployeeServiceWithCache │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ ├── maven-archiver │ │ └── pom.properties │ │ └── maven-status │ │ └── maven-compiler-plugin │ │ └── compile │ │ └── default-compile │ │ ├── createdFiles.lst │ │ └── inputFiles.lst │ └── SynchronousReporting │ ├── .classpath │ ├── .project │ ├── .settings │ ├── .jsdtscope │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.wst.common.component │ ├── org.eclipse.wst.common.project.facet.core.xml │ ├── org.eclipse.wst.jsdt.ui.superType.container │ ├── org.eclipse.wst.jsdt.ui.superType.name │ └── org.eclipse.wst.validation.prefs │ ├── WebContent │ ├── META-INF │ │ └── MANIFEST.MF │ └── WEB-INF │ │ └── web.xml │ ├── build │ └── classes │ │ └── com │ │ └── employee │ │ ├── config │ │ └── EmployeeConfig.class │ │ └── service │ │ ├── Employee.class │ │ └── EmployeeWebService.class │ ├── pom.xml │ ├── src │ └── com │ │ └── employee │ │ ├── config │ │ └── EmployeeConfig.java │ │ └── service │ │ └── EmployeeWebService.java │ └── target │ ├── SynchronousReporting-0.0.1-SNAPSHOT.war │ ├── SynchronousReporting-0.0.1-SNAPSHOT │ ├── META-INF │ │ └── MANIFEST.MF │ └── WEB-INF │ │ ├── classes │ │ └── com │ │ │ └── employee │ │ │ ├── config │ │ │ └── EmployeeConfig.class │ │ │ └── service │ │ │ ├── EmailUtil.class │ │ │ ├── Employee.class │ │ │ ├── EmployeeService.class │ │ │ ├── EmployeeWebService.class │ │ │ └── ReportUtil.class │ │ ├── lib │ │ ├── commons-logging-1.2.jar │ │ ├── jackson-annotations-2.5.0.jar │ │ ├── jackson-core-2.5.0.jar │ │ ├── jackson-databind-2.5.0.jar │ │ ├── jjwt-0.7.0.jar │ │ ├── spring-aop-4.3.9.RELEASE.jar │ │ ├── spring-beans-4.3.9.RELEASE.jar │ │ ├── spring-context-4.3.9.RELEASE.jar │ │ ├── spring-core-4.3.9.RELEASE.jar │ │ ├── spring-expression-4.3.9.RELEASE.jar │ │ ├── spring-web-4.3.9.RELEASE.jar │ │ └── spring-webmvc-4.3.9.RELEASE.jar │ │ └── web.xml │ ├── classes │ └── com │ │ └── employee │ │ ├── config │ │ └── EmployeeConfig.class │ │ └── service │ │ ├── EmailUtil.class │ │ ├── Employee.class │ │ ├── EmployeeService.class │ │ ├── EmployeeWebService.class │ │ └── ReportUtil.class │ ├── m2e-wtp │ └── web-resources │ │ └── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ └── SynchronousReporting │ │ └── SynchronousReporting │ │ ├── pom.properties │ │ └── pom.xml │ ├── maven-archiver │ └── pom.properties │ └── maven-status │ └── maven-compiler-plugin │ └── compile │ └── default-compile │ ├── createdFiles.lst │ └── inputFiles.lst ├── Chapter08 ├── __MACOSX │ └── chapter8 code │ │ └── ._.DS_Store └── chapter8 code │ ├── .DS_Store │ ├── LambdaExample │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── org.eclipse.jdt.core.prefs │ │ └── org.eclipse.m2e.core.prefs │ ├── pom.xml │ ├── src │ │ └── com │ │ │ └── test │ │ │ ├── LambdaMethodHandler.java │ │ │ └── model │ │ │ └── Employee.java │ └── target │ │ ├── LambdaExample-0.0.1-SNAPSHOT.jar │ │ ├── classes │ │ └── com │ │ │ └── test │ │ │ ├── LambdaMethodHandler.class │ │ │ └── model │ │ │ └── Employee.class │ │ ├── maven-archiver │ │ └── pom.properties │ │ ├── maven-status │ │ └── maven-compiler-plugin │ │ │ └── compile │ │ │ └── default-compile │ │ │ ├── createdFiles.lst │ │ │ └── inputFiles.lst │ │ └── original-LambdaExample-0.0.1-SNAPSHOT.jar │ ├── LayeredArchEmployeeExample │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── .jsdtscope │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── org.eclipse.wst.common.component │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ ├── org.eclipse.wst.jsdt.ui.superType.container │ │ ├── org.eclipse.wst.jsdt.ui.superType.name │ │ ├── org.eclipse.wst.validation.prefs │ │ └── org.jboss.ide.eclipse.as.core.prefs │ ├── WebContent │ │ ├── META-INF │ │ │ └── MANIFEST.MF │ │ ├── WEB-INF │ │ │ └── web.xml │ │ └── index.html │ ├── build │ │ └── classes │ │ │ └── com │ │ │ └── employee │ │ │ └── service │ │ │ └── EmployeeWebService.class │ ├── pom.xml │ ├── src │ │ └── com │ │ │ └── employee │ │ │ ├── config │ │ │ └── EmployeeConfig.java │ │ │ ├── controller │ │ │ └── EmployeeController.java │ │ │ ├── dal │ │ │ └── EmployeeDAL.java │ │ │ ├── model │ │ │ └── Employee.java │ │ │ └── service │ │ │ └── EmployeeService.java │ └── target │ │ ├── LayeredEmployeeExample-0.0.1-SNAPSHOT.war │ │ ├── LayeredEmployeeExample-0.0.1-SNAPSHOT │ │ ├── META-INF │ │ │ └── MANIFEST.MF │ │ ├── WEB-INF │ │ │ ├── classes │ │ │ │ └── com │ │ │ │ │ └── employee │ │ │ │ │ ├── config │ │ │ │ │ └── EmployeeConfig.class │ │ │ │ │ ├── controller │ │ │ │ │ └── EmployeeController.class │ │ │ │ │ ├── dal │ │ │ │ │ └── EmployeeDAL.class │ │ │ │ │ ├── model │ │ │ │ │ └── Employee.class │ │ │ │ │ └── service │ │ │ │ │ └── EmployeeService.class │ │ │ ├── lib │ │ │ │ ├── commons-logging-1.2.jar │ │ │ │ ├── jackson-annotations-2.5.0.jar │ │ │ │ ├── jackson-core-2.5.0.jar │ │ │ │ ├── jackson-databind-2.5.0.jar │ │ │ │ ├── jjwt-0.7.0.jar │ │ │ │ ├── spring-aop-4.3.9.RELEASE.jar │ │ │ │ ├── spring-beans-4.3.9.RELEASE.jar │ │ │ │ ├── spring-context-4.3.9.RELEASE.jar │ │ │ │ ├── spring-core-4.3.9.RELEASE.jar │ │ │ │ ├── spring-expression-4.3.9.RELEASE.jar │ │ │ │ ├── spring-web-4.3.9.RELEASE.jar │ │ │ │ └── spring-webmvc-4.3.9.RELEASE.jar │ │ │ └── web.xml │ │ └── index.html │ │ ├── classes │ │ └── com │ │ │ └── employee │ │ │ ├── config │ │ │ └── EmployeeConfig.class │ │ │ ├── controller │ │ │ └── EmployeeController.class │ │ │ ├── dal │ │ │ └── EmployeeDAL.class │ │ │ ├── model │ │ │ └── Employee.class │ │ │ └── service │ │ │ └── EmployeeService.class │ │ ├── maven-archiver │ │ └── pom.properties │ │ └── maven-status │ │ └── maven-compiler-plugin │ │ └── compile │ │ └── default-compile │ │ ├── createdFiles.lst │ │ └── inputFiles.lst │ └── SpringMVC │ ├── .classpath │ ├── .project │ ├── .settings │ ├── .jsdtscope │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.wst.common.component │ ├── org.eclipse.wst.common.project.facet.core.xml │ ├── org.eclipse.wst.jsdt.ui.superType.container │ ├── org.eclipse.wst.jsdt.ui.superType.name │ └── org.eclipse.wst.validation.prefs │ ├── WebContent │ ├── META-INF │ │ └── MANIFEST.MF │ └── WEB-INF │ │ ├── pages │ │ └── employees.jsp │ │ └── web.xml │ ├── pom.xml │ ├── src │ └── com │ │ └── employee │ │ ├── config │ │ └── EmployeeConfig.java │ │ ├── controller │ │ └── EmployeeController.java │ │ ├── dal │ │ └── EmployeeDAL.java │ │ └── model │ │ └── Employee.java │ └── target │ ├── SpringMVC-0.0.1-SNAPSHOT.war │ ├── SpringMVC-0.0.1-SNAPSHOT │ ├── META-INF │ │ └── MANIFEST.MF │ └── WEB-INF │ │ ├── classes │ │ └── com │ │ │ └── employee │ │ │ ├── config │ │ │ └── EmployeeConfig.class │ │ │ ├── controller │ │ │ └── EmployeeController.class │ │ │ ├── dal │ │ │ └── EmployeeDAL.class │ │ │ └── model │ │ │ └── Employee.class │ │ ├── lib │ │ ├── commons-logging-1.2.jar │ │ ├── jsp-api-2.1.jar │ │ ├── jstl-1.2.jar │ │ ├── jstl-api-1.2.jar │ │ ├── spring-aop-4.3.9.RELEASE.jar │ │ ├── spring-beans-4.3.9.RELEASE.jar │ │ ├── spring-context-4.3.9.RELEASE.jar │ │ ├── spring-core-4.3.9.RELEASE.jar │ │ ├── spring-expression-4.3.9.RELEASE.jar │ │ ├── spring-web-4.3.9.RELEASE.jar │ │ └── spring-webmvc-4.3.9.RELEASE.jar │ │ ├── pages │ │ └── employees.jsp │ │ └── web.xml │ ├── classes │ └── com │ │ └── employee │ │ ├── config │ │ └── EmployeeConfig.class │ │ ├── controller │ │ └── EmployeeController.class │ │ ├── dal │ │ └── EmployeeDAL.class │ │ └── model │ │ └── Employee.class │ ├── maven-archiver │ └── pom.properties │ └── maven-status │ └── maven-compiler-plugin │ └── compile │ └── default-compile │ ├── createdFiles.lst │ └── inputFiles.lst ├── Chapter09 ├── Chapter 9 code │ ├── .DS_Store │ ├── Java10Example │ │ ├── .DS_Store │ │ └── MyClass.java │ └── Java9Example │ │ ├── .DS_Store │ │ ├── calculaterjre │ │ ├── .DS_Store │ │ ├── bin │ │ │ ├── java │ │ │ └── keytool │ │ ├── conf │ │ │ ├── net.properties │ │ │ └── security │ │ │ │ ├── java.policy │ │ │ │ ├── java.security │ │ │ │ └── policy │ │ │ │ ├── README.txt │ │ │ │ ├── limited │ │ │ │ ├── default_US_export.policy │ │ │ │ ├── default_local.policy │ │ │ │ └── exempt_local.policy │ │ │ │ └── unlimited │ │ │ │ ├── default_US_export.policy │ │ │ │ └── default_local.policy │ │ ├── include │ │ │ ├── classfile_constants.h │ │ │ ├── darwin │ │ │ │ └── jni_md.h │ │ │ ├── jni.h │ │ │ ├── jvmti.h │ │ │ └── jvmticmlr.h │ │ ├── legal │ │ │ └── java.base │ │ │ │ ├── COPYRIGHT │ │ │ │ ├── LICENSE │ │ │ │ ├── aes.md │ │ │ │ ├── asm.md │ │ │ │ ├── cldr.md │ │ │ │ ├── icu.md │ │ │ │ ├── public_suffix.md │ │ │ │ └── zlib.md │ │ ├── lib │ │ │ ├── classlist │ │ │ ├── jli │ │ │ │ └── libjli.dylib │ │ │ ├── jrt-fs.jar │ │ │ ├── jspawnhelper │ │ │ ├── jvm.cfg │ │ │ ├── libjava.dylib │ │ │ ├── libjimage.dylib │ │ │ ├── libjsig.dylib │ │ │ ├── libnet.dylib │ │ │ ├── libnio.dylib │ │ │ ├── libosxsecurity.dylib │ │ │ ├── libverify.dylib │ │ │ ├── libzip.dylib │ │ │ ├── modules │ │ │ ├── security │ │ │ │ ├── blacklist │ │ │ │ ├── blacklisted.certs │ │ │ │ ├── cacerts │ │ │ │ ├── default.policy │ │ │ │ ├── public_suffix_list.dat │ │ │ │ └── trusted.libraries │ │ │ ├── server │ │ │ │ ├── Xusage.txt │ │ │ │ ├── libjsig.dylib │ │ │ │ └── libjvm.dylib │ │ │ └── tzdb.dat │ │ └── release │ │ ├── output │ │ ├── .DS_Store │ │ ├── classes │ │ │ ├── .DS_Store │ │ │ ├── com │ │ │ │ └── example │ │ │ │ │ └── calc │ │ │ │ │ └── Calculator.class │ │ │ └── module-info.class │ │ ├── lib │ │ │ ├── example.jar │ │ │ ├── java.base.jmod │ │ │ └── user.jar │ │ └── userclasses │ │ │ ├── com │ │ │ └── example │ │ │ │ └── user │ │ │ │ └── User.class │ │ │ └── module-info.class │ │ ├── provider │ │ ├── .DS_Store │ │ └── com.example │ │ │ ├── .DS_Store │ │ │ ├── com │ │ │ ├── .DS_Store │ │ │ └── example │ │ │ │ ├── .DS_Store │ │ │ │ └── calc │ │ │ │ ├── .DS_Store │ │ │ │ └── Calculator.java │ │ │ └── module-info.java │ │ └── user │ │ ├── .DS_Store │ │ └── com.example.user │ │ ├── com │ │ └── example │ │ │ └── user │ │ │ └── User.java │ │ └── module-info.java └── __MACOSX │ └── Chapter 9 code │ ├── ._.DS_Store │ ├── Java10Example │ └── ._.DS_Store │ └── Java9Example │ ├── ._.DS_Store │ ├── calculaterjre │ └── ._.DS_Store │ ├── output │ ├── ._.DS_Store │ └── classes │ │ └── ._.DS_Store │ ├── provider │ ├── ._.DS_Store │ └── com.example │ │ ├── ._.DS_Store │ │ └── com │ │ ├── ._.DS_Store │ │ └── example │ │ ├── ._.DS_Store │ │ └── calc │ │ └── ._.DS_Store │ └── user │ └── ._.DS_Store ├── LICENSE └── README.md /Chapter02/Chapter2/Chapter2/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/.DS_Store -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Chapter2 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.8 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.8 12 | -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/builder/Car.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/builder/Car.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/builder/CarBuilder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/builder/CarBuilder.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/builder/CarBuilderDirector.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/builder/CarBuilderDirector.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/Bike.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/Bike.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/Car.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/Car.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/CarFactory.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/CarFactory.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/CityBike.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/CityBike.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/LargeTruck.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/LargeTruck.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/MountainBike.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/MountainBike.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/Mycode$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/Mycode$1.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/Mycode.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/Mycode.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/SedanCar.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/SedanCar.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/SmallTruck.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/SmallTruck.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/SportCar.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/SportCar.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/Truck.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/Truck.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/TruckFactory.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/TruckFactory.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/Vehicle.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/Vehicle.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/VehicleFactory.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/factory/factorymethod/VehicleFactory.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/factory/staticfactory/Bike.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/factory/staticfactory/Bike.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/factory/staticfactory/Car.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/factory/staticfactory/Car.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/factory/staticfactory/Truck.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/factory/staticfactory/Truck.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/factory/staticfactory/Vehicle.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/factory/staticfactory/Vehicle.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/factory/staticfactory/VehicleFactory$VehicleType.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/factory/staticfactory/VehicleFactory$VehicleType.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/factory/staticfactory/VehicleFactory.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/factory/staticfactory/VehicleFactory.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/singleton/LockFreeSingleton.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/singleton/LockFreeSingleton.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/singleton/MyClass.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/singleton/MyClass.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/bin/com/singleton/Singleton.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter02/Chapter2/Chapter2/bin/com/singleton/Singleton.class -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/src/com/builder/Car.java: -------------------------------------------------------------------------------- 1 | package com.builder; 2 | 3 | public class Car { 4 | // This class has properties of car like color, name, make etc 5 | } 6 | -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/src/com/builder/CarBuilder.java: -------------------------------------------------------------------------------- 1 | package com.builder; 2 | 3 | public class CarBuilder { 4 | 5 | Car car; 6 | 7 | public void buildCar() { 8 | this.car = new Car(); 9 | // add basic properties 10 | 11 | } 12 | 13 | public void addEngine(String string) { 14 | // TODO Auto-generated method stub 15 | 16 | } 17 | 18 | public void addBatteries(String string) { 19 | // TODO Auto-generated method stub 20 | 21 | } 22 | 23 | public void addTransmission(String string) { 24 | // TODO Auto-generated method stub 25 | 26 | } 27 | 28 | public void addWheel(String string) { 29 | // TODO Auto-generated method stub 30 | 31 | } 32 | 33 | public void paint(String string) { 34 | // TODO Auto-generated method stub 35 | 36 | } 37 | 38 | public Car getCar() { 39 | // TODO Auto-generated method stub 40 | return this.car; 41 | } 42 | 43 | public void addGasTank(String string) { 44 | // TODO Auto-generated method stub 45 | 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/src/com/builder/CarBuilderDirector.java: -------------------------------------------------------------------------------- 1 | package com.builder; 2 | 3 | public class CarBuilderDirector { 4 | public Car buildElectricCar(CarBuilder builder){ 5 | 6 | builder.buildCar(); 7 | builder.addEngine("Electric 150 kW"); 8 | builder.addBatteries("1500 kWh"); 9 | builder.addTransmission("Manual"); 10 | for (int i = 0; i < 4; i++) 11 | builder.addWheel("20x12x30"); 12 | builder.paint("red"); 13 | 14 | return builder.getCar(); 15 | } 16 | 17 | public Car buildHybridCar(CarBuilder builder){ 18 | 19 | builder.buildCar(); 20 | builder.addEngine("Electric 150 kW"); 21 | builder.addBatteries("1500 kWh"); 22 | builder.addTransmission("Manual"); 23 | for (int i = 0; i < 4; i++) 24 | builder.addWheel("20x12x30"); 25 | builder.paint("red"); 26 | 27 | builder.addGasTank("1500 kWh"); 28 | builder.addEngine("Gas 1600cc"); 29 | 30 | return builder.getCar(); 31 | } 32 | 33 | 34 | } 35 | -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/src/com/factory/factorymethod/CarFactory.java: -------------------------------------------------------------------------------- 1 | package com.factory.factorymethod; 2 | 3 | public class CarFactory extends VehicleFactory { 4 | 5 | @Override 6 | protected Vehicle createVehicle(String size) { 7 | 8 | if (size.equals("small")) 9 | return new SportCar(); 10 | else if (size.equals("large")) 11 | return new SedanCar(); 12 | 13 | return null; 14 | } 15 | } 16 | 17 | abstract class Car extends Vehicle{ 18 | 19 | } 20 | 21 | class SportCar extends Car{ 22 | 23 | } 24 | 25 | class SedanCar extends Car{ 26 | 27 | } 28 | -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/src/com/factory/factorymethod/Mycode.java: -------------------------------------------------------------------------------- 1 | package com.factory.factorymethod; 2 | 3 | public class Mycode { 4 | 5 | public static void main (String s[]) { 6 | VehicleFactory bikeFactory = new VehicleFactory() { 7 | @Override 8 | protected Vehicle createVehicle(String size) { 9 | 10 | if (size.equals("small")) 11 | return new MountainBike(); 12 | else if (size.equals("large")) 13 | return new CityBike(); 14 | 15 | return null; 16 | } 17 | }; 18 | Vehicle bike= bikeFactory.orderVehicle("large", "blue"); 19 | System.out.println("bike.color:"+bike.color); 20 | } 21 | 22 | } 23 | 24 | abstract class Bike extends Vehicle{ 25 | 26 | } 27 | 28 | class MountainBike extends Bike{ 29 | 30 | } 31 | 32 | class CityBike extends Bike{ 33 | 34 | } -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/src/com/factory/factorymethod/TruckFactory.java: -------------------------------------------------------------------------------- 1 | package com.factory.factorymethod; 2 | 3 | public class TruckFactory extends VehicleFactory { 4 | 5 | @Override 6 | protected Vehicle createVehicle(String size) { 7 | 8 | if (size.equals("small")) 9 | return new SmallTruck(); 10 | else if (size.equals("large")) 11 | return new LargeTruck(); 12 | 13 | return null; 14 | } 15 | 16 | } 17 | 18 | abstract class Truck extends Vehicle{ 19 | 20 | } 21 | 22 | class SmallTruck extends Truck{ 23 | 24 | } 25 | 26 | class LargeTruck extends Truck{ 27 | 28 | } 29 | -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/src/com/factory/factorymethod/VehicleFactory.java: -------------------------------------------------------------------------------- 1 | package com.factory.factorymethod; 2 | 3 | 4 | public abstract class VehicleFactory { 5 | 6 | protected abstract Vehicle createVehicle(String item); 7 | 8 | public Vehicle orderVehicle(String size, String color) 9 | { 10 | Vehicle vehicle = createVehicle(size); 11 | 12 | vehicle.testVehicle(); 13 | vehicle.setColor(color); 14 | 15 | return vehicle; 16 | } 17 | } 18 | 19 | abstract class Vehicle { 20 | String color; 21 | //abstract Vehicle class 22 | public void testVehicle() { 23 | // implementation here 24 | } 25 | 26 | public void setColor(String color) { 27 | this.color=color; 28 | } 29 | 30 | } -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/src/com/factory/staticfactory/VehicleFactory.java: -------------------------------------------------------------------------------- 1 | package com.factory.staticfactory; 2 | 3 | public class VehicleFactory { 4 | 5 | public enum VehicleType{ 6 | Bike,Car,Truck 7 | } 8 | 9 | public static Vehicle create(VehicleType type){ 10 | 11 | if (type.equals(VehicleType.Bike)) 12 | return new Bike(); 13 | if (type.equals(VehicleType.Car)) 14 | return new Car(); 15 | if (type.equals(VehicleType.Truck)) 16 | return new Truck(); 17 | 18 | else return null; 19 | } 20 | } 21 | 22 | abstract class Vehicle { 23 | //abstract Vehicle class 24 | } 25 | 26 | class Bike extends Vehicle{ 27 | //Bike implementation of vehicle 28 | } 29 | 30 | class Car extends Vehicle{ 31 | //Car implementation of vehicle 32 | } 33 | 34 | class Truck extends Vehicle{ 35 | //Bike implementation of vehicle 36 | } -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/src/com/singleton/LockFreeSingleton.java: -------------------------------------------------------------------------------- 1 | package com.singleton; 2 | 3 | public class LockFreeSingleton 4 | { 5 | private static final LockFreeSingleton instance = new LockFreeSingleton(); 6 | 7 | private LockFreeSingleton(){ 8 | System.out.println("Singleton is Instantiated."); 9 | } 10 | 11 | public static synchronized LockFreeSingleton getInstance(){ 12 | return instance; 13 | } 14 | 15 | public void doSomething(){ 16 | System.out.println("Something is Done."); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/src/com/singleton/MyClass.java: -------------------------------------------------------------------------------- 1 | package com.singleton; 2 | 3 | public class MyClass { 4 | 5 | public static void main(String[] s) { 6 | Singleton singleton = Singleton.getInstance(); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Chapter02/Chapter2/Chapter2/src/com/singleton/Singleton.java: -------------------------------------------------------------------------------- 1 | package com.singleton; 2 | 3 | public class Singleton 4 | { 5 | private static Singleton instance; 6 | 7 | private Singleton(){ 8 | System.out.println("Singleton is Instantiated."); 9 | } 10 | 11 | public static Singleton getInstance() 12 | { 13 | if (instance == null) 14 | instance = new Singleton(); 15 | 16 | return instance; 17 | } 18 | 19 | public void doSomething(){ 20 | System.out.println("Something is Done."); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Chapter02/Chapter2/__MACOSX/Chapter2/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx ATTRxx -------------------------------------------------------------------------------- /Chapter03/Chapter3/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chapter03/Chapter3/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Chapter3 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /Chapter03/Chapter3/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=10 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=10 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=10 12 | -------------------------------------------------------------------------------- /Chapter03/Chapter3/bin/com/chapter3/interpreter/Evaluator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter03/Chapter3/bin/com/chapter3/interpreter/Evaluator.class -------------------------------------------------------------------------------- /Chapter03/Chapter3/bin/com/chapter3/interpreter/Expression.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter03/Chapter3/bin/com/chapter3/interpreter/Expression.class -------------------------------------------------------------------------------- /Chapter03/Chapter3/bin/com/chapter3/interpreter/Minus.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter03/Chapter3/bin/com/chapter3/interpreter/Minus.class -------------------------------------------------------------------------------- /Chapter03/Chapter3/bin/com/chapter3/interpreter/Number.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter03/Chapter3/bin/com/chapter3/interpreter/Number.class -------------------------------------------------------------------------------- /Chapter03/Chapter3/bin/com/chapter3/interpreter/Plus.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter03/Chapter3/bin/com/chapter3/interpreter/Plus.class -------------------------------------------------------------------------------- /Chapter03/Chapter3/bin/com/chapter3/iterator/Aggregate.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter03/Chapter3/bin/com/chapter3/iterator/Aggregate.class -------------------------------------------------------------------------------- /Chapter03/Chapter3/bin/com/chapter3/iterator/Iterator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter03/Chapter3/bin/com/chapter3/iterator/Iterator.class -------------------------------------------------------------------------------- /Chapter03/Chapter3/bin/com/chapter3/iterator/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter03/Chapter3/bin/com/chapter3/iterator/Main.class -------------------------------------------------------------------------------- /Chapter03/Chapter3/bin/com/chapter3/iterator/StringArray$StringArrayIterator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter03/Chapter3/bin/com/chapter3/iterator/StringArray$StringArrayIterator.class -------------------------------------------------------------------------------- /Chapter03/Chapter3/bin/com/chapter3/iterator/StringArray.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter03/Chapter3/bin/com/chapter3/iterator/StringArray.class -------------------------------------------------------------------------------- /Chapter03/Chapter3/bin/com/chapter3/memento/CarCaretaker.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter03/Chapter3/bin/com/chapter3/memento/CarCaretaker.class -------------------------------------------------------------------------------- /Chapter03/Chapter3/bin/com/chapter3/memento/CarOriginator$Memento.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter03/Chapter3/bin/com/chapter3/memento/CarOriginator$Memento.class -------------------------------------------------------------------------------- /Chapter03/Chapter3/bin/com/chapter3/memento/CarOriginator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter03/Chapter3/bin/com/chapter3/memento/CarOriginator.class -------------------------------------------------------------------------------- /Chapter03/Chapter3/src/com/chapter3/interpreter/Expression.java: -------------------------------------------------------------------------------- 1 | package com.chapter3.interpreter; 2 | 3 | public interface Expression { 4 | public float interpret(); 5 | } 6 | -------------------------------------------------------------------------------- /Chapter03/Chapter3/src/com/chapter3/interpreter/Minus.java: -------------------------------------------------------------------------------- 1 | package com.chapter3.interpreter; 2 | 3 | public class Minus implements Expression { 4 | Expression left; 5 | Expression right; 6 | 7 | public Minus(Expression left, Expression right) { 8 | this.left = left; 9 | this.right = right; 10 | } 11 | 12 | public float interpret() { 13 | return right.interpret() - left.interpret(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Chapter03/Chapter3/src/com/chapter3/interpreter/Number.java: -------------------------------------------------------------------------------- 1 | package com.chapter3.interpreter; 2 | 3 | public class Number implements Expression { 4 | private float number; 5 | 6 | public Number(float number) { 7 | this.number = number; 8 | } 9 | 10 | public float interpret() { 11 | return number; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Chapter03/Chapter3/src/com/chapter3/interpreter/Plus.java: -------------------------------------------------------------------------------- 1 | package com.chapter3.interpreter; 2 | 3 | public class Plus implements Expression { 4 | Expression left; 5 | Expression right; 6 | 7 | public Plus(Expression left, Expression right) { 8 | this.left = left; 9 | this.right = right; 10 | } 11 | 12 | public float interpret() { 13 | return left.interpret() + right.interpret(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Chapter03/Chapter3/src/com/chapter3/iterator/Aggregate.java: -------------------------------------------------------------------------------- 1 | package com.chapter3.iterator; 2 | 3 | public interface Aggregate 4 | { 5 | public Iterator createIterator(); 6 | } 7 | -------------------------------------------------------------------------------- /Chapter03/Chapter3/src/com/chapter3/iterator/Iterator.java: -------------------------------------------------------------------------------- 1 | package com.chapter3.iterator; 2 | 3 | public interface Iterator 4 | { 5 | public Object next(); 6 | public boolean hasNext(); 7 | } 8 | -------------------------------------------------------------------------------- /Chapter03/Chapter3/src/com/chapter3/iterator/Main.java: -------------------------------------------------------------------------------- 1 | package com.chapter3.iterator; 2 | 3 | public class Main { 4 | 5 | public static void main(String s[]){ 6 | String arr[]= {"a", "b", "c", "d"}; 7 | StringArray strarr = new StringArray(arr); 8 | for (Iterator it = strarr.createIterator(); it.hasNext(); ) 9 | System.out.println(it.next()); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Chapter03/Chapter3/src/com/chapter3/iterator/StringArray.java: -------------------------------------------------------------------------------- 1 | package com.chapter3.iterator; 2 | 3 | public class StringArray implements Aggregate 4 | { 5 | private String values[]; 6 | 7 | public StringArray(String[] values) { 8 | this.values = values; 9 | } 10 | 11 | public Iterator createIterator() 12 | { 13 | return (Iterator) new StringArrayIterator(); 14 | } 15 | 16 | 17 | private class StringArrayIterator implements Iterator 18 | { 19 | private int position; 20 | 21 | public boolean hasNext() 22 | { 23 | return (position < values.length); 24 | } 25 | public String next() 26 | { 27 | if (this.hasNext()) 28 | return values[position++]; 29 | else 30 | return null; 31 | } 32 | } 33 | } 34 | 35 | -------------------------------------------------------------------------------- /Chapter03/Chapter3/src/com/chapter3/memento/CarCaretaker.java: -------------------------------------------------------------------------------- 1 | package com.chapter3.memento; 2 | 3 | public class CarCaretaker { 4 | 5 | public static void main(String s[]) { 6 | new CarCaretaker().runMechanicTest(); 7 | } 8 | 9 | public void runMechanicTest() { 10 | CarOriginator.Memento savedState = new CarOriginator.Memento(""); 11 | CarOriginator originator = new CarOriginator(); 12 | originator.setState("State1"); 13 | originator.setState("State2"); 14 | savedState = originator.saveState(); 15 | originator.setState("State3"); 16 | 17 | originator.restoreState(savedState); 18 | System.out.println("final state:" + originator.getState()); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /Chapter03/Chapter3/src/com/chapter3/memento/CarOriginator.java: -------------------------------------------------------------------------------- 1 | package com.chapter3.memento; 2 | 3 | public class CarOriginator { 4 | 5 | private String state; 6 | 7 | public void setState(String state) { 8 | this.state = state; 9 | } 10 | 11 | public String getState() { 12 | return this.state; 13 | } 14 | 15 | public Memento saveState() { 16 | return new Memento(this.state); 17 | } 18 | 19 | public void restoreState(Memento memento) { 20 | this.state = memento.getState(); 21 | } 22 | 23 | /** 24 | * Memento class 25 | */ 26 | public static class Memento { 27 | private final String state; 28 | 29 | public Memento(String state) { 30 | this.state = state; 31 | } 32 | 33 | private String getState() { 34 | return state; 35 | } 36 | } 37 | 38 | } 39 | 40 | -------------------------------------------------------------------------------- /Chapter04/chapter4_source/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.packt.design 4 | chapter4 5 | 0.0.1-SNAPSHOT 6 | -------------------------------------------------------------------------------- /Chapter05/chapter5_source/src/main/java/chapter5/tco/Main.java: -------------------------------------------------------------------------------- 1 | package chapter5.tco; 2 | 3 | import static cyclops.control.Trampoline.done; 4 | import static cyclops.control.Trampoline.more; 5 | 6 | import java.math.BigInteger; 7 | 8 | import cyclops.control.Trampoline; 9 | 10 | public class Main { 11 | 12 | public void fib() { 13 | for(int i=0;i<100_000;i++) 14 | System.out.println(fibonacci(BigInteger.valueOf(i), BigInteger.ZERO, BigInteger.ONE).get()); 15 | } 16 | 17 | public Trampoline fibonacci(BigInteger count, BigInteger a, BigInteger b) { 18 | return count.equals(BigInteger.ZERO) ? done(a) : more(()->fibonacci (count.subtract(BigInteger.ONE), b, a.add(b))); 19 | } 20 | 21 | public static void main(String[] args) { 22 | new Main().fib(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Chapter06/chapter6_source/chapter6/src/main/java/com/packt/java9/chapter6/Chapter6Application.java: -------------------------------------------------------------------------------- 1 | package com.packt.java9.chapter6; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Chapter6Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Chapter6Application.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Chapter06/chapter6_source/chapter6/src/main/java/com/packt/java9/chapter6/SensorData.java: -------------------------------------------------------------------------------- 1 | package com.packt.java9.chapter6; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | 5 | import lombok.Data; 6 | 7 | @Data 8 | public class SensorData { 9 | @JsonProperty 10 | Double humidity; 11 | 12 | @JsonProperty 13 | Double temperature; 14 | 15 | @JsonProperty 16 | String sensorName; 17 | 18 | public SensorData(String sensorName) { 19 | this.sensorName = sensorName; 20 | humidity = Double.valueOf(20 + 80 * Math.random()); 21 | temperature = Double.valueOf(80 + 20 * Math.random()); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Chapter06/chapter6_source/chapter6/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | sensor.name=NuclearCell1 -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 8 | org.eclipse.jdt.core.compiler.source=1.8 9 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/build/classes/com/employee/config/EmployeeConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/build/classes/com/employee/config/EmployeeConfig.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/build/classes/com/employee/service/Employee.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/build/classes/com/employee/service/Employee.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/build/classes/com/employee/service/EmployeeWebService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/build/classes/com/employee/service/EmployeeWebService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/src/com/employee/config/EmployeeConfig.java: -------------------------------------------------------------------------------- 1 | package com.employee.config; 2 | 3 | import org.springframework.context.annotation.ComponentScan; 4 | import org.springframework.context.annotation.Configuration; 5 | import org.springframework.web.servlet.config.annotation.EnableWebMvc; 6 | 7 | @EnableWebMvc 8 | @Configuration 9 | @ComponentScan(basePackages = "com.employee.*") 10 | public class EmployeeConfig { 11 | 12 | } -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT.war: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT.war -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/config/EmployeeConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/config/EmployeeConfig.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmailUtil.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmailUtil.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/Employee.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/Employee.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmployeeService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmployeeService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmployeeWebService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmployeeWebService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/ReportUtil.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/ReportUtil.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/commons-logging-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/commons-logging-1.2.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-annotations-2.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-annotations-2.5.0.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-core-2.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-core-2.5.0.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-databind-2.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-databind-2.5.0.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/jjwt-0.7.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/jjwt-0.7.0.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-aop-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-aop-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-beans-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-beans-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-context-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-context-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-core-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-core-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-expression-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-expression-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-web-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-web-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-webmvc-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/AsynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-webmvc-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/classes/com/employee/config/EmployeeConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/classes/com/employee/config/EmployeeConfig.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/classes/com/employee/service/EmailUtil.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/classes/com/employee/service/EmailUtil.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/classes/com/employee/service/Employee.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/classes/com/employee/service/Employee.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/classes/com/employee/service/EmployeeService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/classes/com/employee/service/EmployeeService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/classes/com/employee/service/EmployeeWebService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/classes/com/employee/service/EmployeeWebService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/classes/com/employee/service/ReportUtil.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/AynchronousReporting/target/classes/com/employee/service/ReportUtil.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: kamal 3 | Build-Jdk: 10.0.1 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/m2e-wtp/web-resources/META-INF/maven/AsynchronousReporting/AsynchronousReporting/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Jun 08 18:56:07 IST 2018 3 | m2e.projectLocation=/home/kamal/Downloads/Chapter_7_Code/AynchronousReporting 4 | m2e.projectName=AsynchronousReporting 5 | groupId=AsynchronousReporting 6 | artifactId=AsynchronousReporting 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | #Created by Apache Maven 3.3.9 2 | version=0.0.1-SNAPSHOT 3 | groupId=AsynchronousReporting 4 | artifactId=AsynchronousReporting 5 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | com/employee/service/EmployeeWebService.class 2 | com/employee/service/ReportUtil.class 3 | com/employee/config/EmployeeConfig.class 4 | com/employee/service/EmailUtil.class 5 | com/employee/service/Employee.class 6 | com/employee/service/EmployeeService.class 7 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/AynchronousReporting/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | /home/kamal/Magna-Backend/AynchronousReporting/src/com/employee/config/EmployeeConfig.java 2 | /home/kamal/Magna-Backend/AynchronousReporting/src/com/employee/service/EmployeeWebService.java 3 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 8 | org.eclipse.jdt.core.compiler.source=1.8 9 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/WebContent/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | HelloWorld Application 9 | 10 | This is a simple web application with a source code organization 11 | based on the recommendations of the Application Developer's Guide. 12 | 13 | 14 | 15 | EmployeeServlet 16 | com.employee.service.EmployeeWebService 17 | 18 | 19 | 20 | EmployeeServlet 21 | /employee 22 | 23 | 24 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/build/classes/com/employee/service/EmployeeWebService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/EmployeeServlet/build/classes/com/employee/service/EmployeeWebService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/target/EmployeeServlet-0.0.1-SNAPSHOT.war: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/EmployeeServlet/target/EmployeeServlet-0.0.1-SNAPSHOT.war -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/target/EmployeeServlet-0.0.1-SNAPSHOT/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/target/EmployeeServlet-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmployeeWebService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/EmployeeServlet/target/EmployeeServlet-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmployeeWebService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/target/EmployeeServlet-0.0.1-SNAPSHOT/WEB-INF/lib/json-simple-1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/EmployeeServlet/target/EmployeeServlet-0.0.1-SNAPSHOT/WEB-INF/lib/json-simple-1.1.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/target/EmployeeServlet-0.0.1-SNAPSHOT/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | HelloWorld Application 9 | 10 | This is a simple web application with a source code organization 11 | based on the recommendations of the Application Developer's Guide. 12 | 13 | 14 | 15 | EmployeeServlet 16 | com.employee.service.EmployeeWebService 17 | 18 | 19 | 20 | EmployeeServlet 21 | /employee 22 | 23 | 24 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/target/classes/com/employee/service/EmployeeWebService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/EmployeeServlet/target/classes/com/employee/service/EmployeeWebService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: kamal 3 | Build-Jdk: 10.0.1 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/target/m2e-wtp/web-resources/META-INF/maven/EmployeeServlet/EmployeeServlet/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Jun 08 18:56:07 IST 2018 3 | m2e.projectLocation=/home/kamal/Downloads/Chapter_7_Code/EmployeeServlet 4 | m2e.projectName=EmployeeServlet 5 | groupId=EmployeeServlet 6 | artifactId=EmployeeServlet 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | #Created by Apache Maven 3.3.9 2 | version=0.0.1-SNAPSHOT 3 | groupId=EmployeeServlet 4 | artifactId=EmployeeServlet 5 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | com/employee/service/EmployeeWebService.class 2 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/EmployeeServlet/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | /home/kamal/Magna-Backend/EmployeeServlet/src/com/employee/service/EmployeeWebService.java 2 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/JWTExample/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/JWTExample/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | JWTExample 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.m2e.core.maven2Nature 21 | org.eclipse.jdt.core.javanature 22 | 23 | 24 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/JWTExample/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.8 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 12 | org.eclipse.jdt.core.compiler.source=1.8 13 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/JWTExample/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/JWTExample/bin/JWTService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/JWTExample/bin/JWTService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/JWTExample/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | JWTExample 4 | JWTExample 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | io.jsonwebtoken 9 | jjwt 10 | 0.7.0 11 | 12 | 13 | 14 | src 15 | 16 | 17 | maven-compiler-plugin 18 | 3.7.0 19 | 20 | 1.8 21 | 1.8 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/JWTExample/src/com/employee/main/JWTMain.java: -------------------------------------------------------------------------------- 1 | package com.employee.main; 2 | import com.employee.model.User; 3 | import com.employee.service.JWTService; 4 | 5 | /** 6 | * Class to test our JWT implementation. 7 | * 8 | */ 9 | public class JWTMain { 10 | 11 | public static void main(String s[]) { 12 | User user = new User(); 13 | user.setId("1"); 14 | user.setName("Dave"); 15 | user.setRole("Manager"); 16 | 17 | JWTService jwtService=new JWTService(); 18 | String token = jwtService.createAccessJwtToken(user); 19 | 20 | System.out.println(token); 21 | 22 | User newuser = jwtService.parseJwtToken(token); 23 | System.out.println(newuser.getName()); 24 | System.out.println(newuser.getId()); 25 | System.out.println(newuser.getRole()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/JWTExample/src/com/employee/model/User.java: -------------------------------------------------------------------------------- 1 | package com.employee.model; 2 | 3 | /** 4 | * 5 | * A dummy user class to hold user data. 6 | * 7 | */ 8 | public class User { 9 | 10 | private String name; 11 | private String id; 12 | private String role; 13 | 14 | public String getName() { 15 | return name; 16 | } 17 | public void setName(String name) { 18 | this.name = name; 19 | } 20 | public String getId() { 21 | return id; 22 | } 23 | public void setId(String id) { 24 | this.id = id; 25 | } 26 | public String getRole() { 27 | return role; 28 | } 29 | public void setRole(String role) { 30 | this.role = role; 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/JWTExample/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: kamal 3 | Build-Jdk: 10.0.1 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/JWTExample/target/classes/META-INF/maven/JWTExample/JWTExample/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Jun 08 18:56:09 IST 2018 3 | m2e.projectLocation=/home/kamal/Downloads/Chapter_7_Code/JWTExample 4 | m2e.projectName=JWTExample 5 | groupId=JWTExample 6 | artifactId=JWTExample 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/JWTExample/target/classes/META-INF/maven/JWTExample/JWTExample/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | JWTExample 4 | JWTExample 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | io.jsonwebtoken 9 | jjwt 10 | 0.7.0 11 | 12 | 13 | 14 | src 15 | 16 | 17 | maven-compiler-plugin 18 | 3.7.0 19 | 20 | 1.8 21 | 1.8 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/JWTExample/target/classes/com/employee/main/JWTMain.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/JWTExample/target/classes/com/employee/main/JWTMain.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/JWTExample/target/classes/com/employee/model/User.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/JWTExample/target/classes/com/employee/model/User.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/JWTExample/target/classes/com/employee/service/JWTService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/JWTExample/target/classes/com/employee/service/JWTService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 8 | org.eclipse.jdt.core.compiler.source=1.8 9 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/build/classes/com/employee/service/EmployeeWebService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeService/build/classes/com/employee/service/EmployeeWebService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/src/com/employee/config/EmployeeConfig.java: -------------------------------------------------------------------------------- 1 | package com.employee.config; 2 | 3 | import org.springframework.context.annotation.ComponentScan; 4 | import org.springframework.context.annotation.Configuration; 5 | import org.springframework.web.servlet.config.annotation.EnableWebMvc; 6 | 7 | @EnableWebMvc 8 | @Configuration 9 | @ComponentScan(basePackages = "com.employee.*") 10 | public class EmployeeConfig { 11 | 12 | } -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT.war: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT.war -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/config/EmployeeConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/config/EmployeeConfig.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/Employee.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/Employee.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmployeeWebService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmployeeWebService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/commons-logging-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/commons-logging-1.2.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-annotations-2.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-annotations-2.5.0.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-core-2.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-core-2.5.0.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-databind-2.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-databind-2.5.0.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/jjwt-0.7.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/jjwt-0.7.0.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/spring-aop-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/spring-aop-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/spring-beans-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/spring-beans-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/spring-context-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/spring-context-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/spring-core-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/spring-core-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/spring-expression-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/spring-expression-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/spring-web-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/spring-web-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/spring-webmvc-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/SpringMVCEmployeeService-0.0.1-SNAPSHOT/WEB-INF/lib/spring-webmvc-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/classes/com/employee/config/EmployeeConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/classes/com/employee/config/EmployeeConfig.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/classes/com/employee/service/Employee.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/classes/com/employee/service/Employee.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/classes/com/employee/service/EmployeeDAO.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/classes/com/employee/service/EmployeeDAO.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/classes/com/employee/service/EmployeeWebService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/classes/com/employee/service/EmployeeWebService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: kamal 3 | Build-Jdk: 10.0.1 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/m2e-wtp/web-resources/META-INF/maven/SpringMVCEmployeeService/SpringMVCEmployeeService/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Jun 08 18:16:24 IST 2018 3 | m2e.projectLocation=/home/kamal/Downloads/Chapter_7_Code/SpringMVCEmployeeService 4 | m2e.projectName=SpringMVCEmployeeService 5 | groupId=SpringMVCEmployeeService 6 | artifactId=SpringMVCEmployeeService 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | #Created by Apache Maven 3.3.9 2 | version=0.0.1-SNAPSHOT 3 | groupId=SpringMVCEmployeeService 4 | artifactId=SpringMVCEmployeeService 5 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | com/employee/service/EmployeeWebService.class 2 | com/employee/config/EmployeeConfig.class 3 | com/employee/service/Employee.class 4 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeService/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | /home/kamal/Magna-Backend/SpringMVCEmployeeService/src/com/employee/config/EmployeeConfig.java 2 | /home/kamal/Magna-Backend/SpringMVCEmployeeService/src/com/employee/service/EmployeeWebService.java 3 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 8 | org.eclipse.jdt.core.compiler.source=1.8 9 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/build/classes/com/employee/service/EmployeeWebService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/build/classes/com/employee/service/EmployeeWebService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/src/com/employee/config/EmployeeConfig.java: -------------------------------------------------------------------------------- 1 | package com.employee.config; 2 | 3 | import org.springframework.context.annotation.ComponentScan; 4 | import org.springframework.context.annotation.Configuration; 5 | import org.springframework.web.servlet.config.annotation.EnableWebMvc; 6 | 7 | @EnableWebMvc 8 | @Configuration 9 | @ComponentScan(basePackages = "com.employee.*") 10 | public class EmployeeConfig { 11 | 12 | } -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT.war: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT.war -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/config/EmployeeConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/config/EmployeeConfig.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/Employee.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/Employee.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmployeeCache.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmployeeCache.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmployeeService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmployeeService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmployeeWebService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmployeeWebService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/commons-logging-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/commons-logging-1.2.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-annotations-2.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-annotations-2.5.0.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-core-2.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-core-2.5.0.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-databind-2.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-databind-2.5.0.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/jjwt-0.7.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/jjwt-0.7.0.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/spring-aop-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/spring-aop-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/spring-beans-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/spring-beans-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/spring-context-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/spring-context-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/spring-core-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/spring-core-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/spring-expression-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/spring-expression-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/spring-web-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/spring-web-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/spring-webmvc-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/SpringMVCEmployeeServiceWithCache-0.0.1-SNAPSHOT/WEB-INF/lib/spring-webmvc-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/classes/com/employee/config/EmployeeConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/classes/com/employee/config/EmployeeConfig.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/classes/com/employee/service/Employee.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/classes/com/employee/service/Employee.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/classes/com/employee/service/EmployeeCache.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/classes/com/employee/service/EmployeeCache.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/classes/com/employee/service/EmployeeService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/classes/com/employee/service/EmployeeService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/classes/com/employee/service/EmployeeWebService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/classes/com/employee/service/EmployeeWebService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: kamal 3 | Build-Jdk: 10.0.1 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/m2e-wtp/web-resources/META-INF/maven/SpringMVCEmployeeServiceWithCache/SpringMVCEmployeeServiceWithCache/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Jun 08 18:56:09 IST 2018 3 | m2e.projectLocation=/home/kamal/Downloads/Chapter_7_Code/SpringMVCEmployeeServiceWithCache 4 | m2e.projectName=SpringMVCEmployeeServiceWithCache 5 | groupId=SpringMVCEmployeeServiceWithCache 6 | artifactId=SpringMVCEmployeeServiceWithCache 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | #Created by Apache Maven 3.3.9 2 | version=0.0.1-SNAPSHOT 3 | groupId=SpringMVCEmployeeServiceWithCache 4 | artifactId=SpringMVCEmployeeServiceWithCache 5 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | com/employee/service/EmployeeWebService.class 2 | com/employee/service/EmployeeCache.class 3 | com/employee/config/EmployeeConfig.class 4 | com/employee/service/Employee.class 5 | com/employee/service/EmployeeService.class 6 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SpringMVCEmployeeServiceWithCache/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | /home/kamal/Magna-Backend/SpringMVCEmployeeServiceWithCache/src/com/employee/config/EmployeeConfig.java 2 | /home/kamal/Magna-Backend/SpringMVCEmployeeServiceWithCache/src/com/employee/service/EmployeeWebService.java 3 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 8 | org.eclipse.jdt.core.compiler.source=1.8 9 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/build/classes/com/employee/config/EmployeeConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/build/classes/com/employee/config/EmployeeConfig.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/build/classes/com/employee/service/Employee.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/build/classes/com/employee/service/Employee.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/build/classes/com/employee/service/EmployeeWebService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/build/classes/com/employee/service/EmployeeWebService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/src/com/employee/config/EmployeeConfig.java: -------------------------------------------------------------------------------- 1 | package com.employee.config; 2 | 3 | import org.springframework.context.annotation.ComponentScan; 4 | import org.springframework.context.annotation.Configuration; 5 | import org.springframework.web.servlet.config.annotation.EnableWebMvc; 6 | 7 | @EnableWebMvc 8 | @Configuration 9 | @ComponentScan(basePackages = "com.employee.*") 10 | public class EmployeeConfig { 11 | 12 | } -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT.war: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT.war -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/config/EmployeeConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/config/EmployeeConfig.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmailUtil.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmailUtil.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/Employee.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/Employee.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmployeeService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmployeeService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmployeeWebService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmployeeWebService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/ReportUtil.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/ReportUtil.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/commons-logging-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/commons-logging-1.2.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-annotations-2.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-annotations-2.5.0.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-core-2.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-core-2.5.0.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-databind-2.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-databind-2.5.0.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/jjwt-0.7.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/jjwt-0.7.0.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-aop-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-aop-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-beans-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-beans-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-context-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-context-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-core-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-core-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-expression-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-expression-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-web-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-web-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-webmvc-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/SynchronousReporting-0.0.1-SNAPSHOT/WEB-INF/lib/spring-webmvc-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/classes/com/employee/config/EmployeeConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/classes/com/employee/config/EmployeeConfig.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/classes/com/employee/service/EmailUtil.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/classes/com/employee/service/EmailUtil.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/classes/com/employee/service/Employee.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/classes/com/employee/service/Employee.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/classes/com/employee/service/EmployeeService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/classes/com/employee/service/EmployeeService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/classes/com/employee/service/EmployeeWebService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/classes/com/employee/service/EmployeeWebService.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/classes/com/employee/service/ReportUtil.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter07/Chapter_7_Code/SynchronousReporting/target/classes/com/employee/service/ReportUtil.class -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: kamal 3 | Build-Jdk: 10.0.1 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/m2e-wtp/web-resources/META-INF/maven/SynchronousReporting/SynchronousReporting/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Jun 08 18:56:10 IST 2018 3 | m2e.projectLocation=/home/kamal/Downloads/Chapter_7_Code/SynchronousReporting 4 | m2e.projectName=SynchronousReporting 5 | groupId=SynchronousReporting 6 | artifactId=SynchronousReporting 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | #Created by Apache Maven 3.3.9 2 | version=0.0.1-SNAPSHOT 3 | groupId=SynchronousReporting 4 | artifactId=SynchronousReporting 5 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | com/employee/service/EmployeeWebService.class 2 | com/employee/service/ReportUtil.class 3 | com/employee/config/EmployeeConfig.class 4 | com/employee/service/EmailUtil.class 5 | com/employee/service/Employee.class 6 | com/employee/service/EmployeeService.class 7 | -------------------------------------------------------------------------------- /Chapter07/Chapter_7_Code/SynchronousReporting/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | /home/kamal/Magna-Backend/SynchronousReporting/src/com/employee/config/EmployeeConfig.java 2 | /home/kamal/Magna-Backend/SynchronousReporting/src/com/employee/service/EmployeeWebService.java 3 | -------------------------------------------------------------------------------- /Chapter08/__MACOSX/chapter8 code/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx ATTRxx -------------------------------------------------------------------------------- /Chapter08/chapter8 code/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/.DS_Store -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LambdaExample/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LambdaExample/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | LambdaExample 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.m2e.core.maven2Nature 21 | org.eclipse.jdt.core.javanature 22 | 23 | 24 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LambdaExample/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.8 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 12 | org.eclipse.jdt.core.compiler.source=1.8 13 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LambdaExample/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LambdaExample/src/com/test/model/Employee.java: -------------------------------------------------------------------------------- 1 | package com.test.model; 2 | 3 | public class Employee { 4 | 5 | String name; 6 | String id; 7 | String Designation; 8 | public String getName() { 9 | return name; 10 | } 11 | public void setName(String name) { 12 | this.name = name; 13 | } 14 | public String getId() { 15 | return id; 16 | } 17 | public void setId(String id) { 18 | this.id = id; 19 | } 20 | public String getDesignation() { 21 | return Designation; 22 | } 23 | public void setDesignation(String designation) { 24 | Designation = designation; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LambdaExample/target/LambdaExample-0.0.1-SNAPSHOT.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LambdaExample/target/LambdaExample-0.0.1-SNAPSHOT.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LambdaExample/target/classes/com/test/LambdaMethodHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LambdaExample/target/classes/com/test/LambdaMethodHandler.class -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LambdaExample/target/classes/com/test/model/Employee.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LambdaExample/target/classes/com/test/model/Employee.class -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LambdaExample/target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven 2 | #Sat May 05 23:18:31 IST 2018 3 | groupId=LambdaExample 4 | artifactId=LambdaExample 5 | version=0.0.1-SNAPSHOT 6 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LambdaExample/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | com/test/model/Employee.class 2 | com/test/LambdaMethodHandler.class 3 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LambdaExample/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | /Users/kamalmeetsingh/eclipse-workspace/LambdaExample/src/com/test/model/Employee.java 2 | /Users/kamalmeetsingh/eclipse-workspace/LambdaExample/src/com/test/LambdaMethodHandler.java 3 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LambdaExample/target/original-LambdaExample-0.0.1-SNAPSHOT.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LambdaExample/target/original-LambdaExample-0.0.1-SNAPSHOT.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 8 | org.eclipse.jdt.core.compiler.source=1.8 9 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/.settings/org.jboss.ide.eclipse.as.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.jboss.ide.eclipse.as.core.singledeployable.deployableList= 3 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/WebContent/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

The XMLHttpRequest Object

6 | 7 | 8 | 9 |

10 | 11 | 12 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/build/classes/com/employee/service/EmployeeWebService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/build/classes/com/employee/service/EmployeeWebService.class -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/src/com/employee/config/EmployeeConfig.java: -------------------------------------------------------------------------------- 1 | package com.employee.config; 2 | 3 | import org.springframework.context.annotation.ComponentScan; 4 | import org.springframework.context.annotation.Configuration; 5 | import org.springframework.web.servlet.config.annotation.EnableWebMvc; 6 | 7 | @EnableWebMvc 8 | @Configuration 9 | @ComponentScan(basePackages = "com.employee.*") 10 | public class EmployeeConfig { 11 | 12 | } -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/src/com/employee/dal/EmployeeDAL.java: -------------------------------------------------------------------------------- 1 | package com.employee.dal; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import com.employee.model.Employee; 7 | 8 | /** 9 | * This class handle all the Employee Related Database operations. 10 | * 11 | */ 12 | public class EmployeeDAL { 13 | 14 | /** 15 | * This methods fetches employee list and returns to the caller. 16 | * @return EmployeeList 17 | */ 18 | public List getEmployeeList(){ 19 | 20 | List empList = new ArrayList(); 21 | // One will need to create a DB connection and fetch Employees 22 | // Or we can use ORM like hibernate or frameworks like mybatis 23 | // For this example we are returning a dummy list 24 | Employee emp1 = new Employee(); 25 | emp1.setId("1"); 26 | emp1.setName("Dave"); 27 | emp1.setDesignation("Manager"); 28 | Employee emp2 = new Employee(); 29 | emp2.setId("2"); 30 | emp2.setName("John"); 31 | emp2.setDesignation("Engineer"); 32 | empList.add(emp1); 33 | empList.add(emp2); 34 | return empList; 35 | 36 | 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/src/com/employee/model/Employee.java: -------------------------------------------------------------------------------- 1 | package com.employee.model; 2 | 3 | public class Employee { 4 | String name; 5 | String id; 6 | String designation; 7 | 8 | public String getName() { 9 | return name; 10 | } 11 | 12 | public void setName(String name) { 13 | this.name = name; 14 | } 15 | 16 | public String getId() { 17 | return id; 18 | } 19 | 20 | public void setId(String id) { 21 | this.id = id; 22 | } 23 | 24 | public String getDesignation() { 25 | return designation; 26 | } 27 | 28 | public void setDesignation(String designation) { 29 | this.designation = designation; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/src/com/employee/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package com.employee.service; 2 | 3 | import java.util.List; 4 | 5 | import com.employee.dal.EmployeeDAL; 6 | import com.employee.model.Employee; 7 | 8 | /** 9 | * 10 | * This service handles all the Employee relation functionality and servers 11 | * calling methods. 12 | */ 13 | public class EmployeeService { 14 | 15 | /** 16 | * This methods returns list of Employees 17 | * @return EmployeeList 18 | */ 19 | public List getEmployeeList(){ 20 | 21 | // This method calls EmployeeDAL and gets employee List 22 | EmployeeDAL empDAL = new EmployeeDAL(); 23 | return empDAL.getEmployeeList(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT.war: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT.war -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/config/EmployeeConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/config/EmployeeConfig.class -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/controller/EmployeeController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/controller/EmployeeController.class -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/dal/EmployeeDAL.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/dal/EmployeeDAL.class -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/model/Employee.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/model/Employee.class -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmployeeService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/service/EmployeeService.class -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/commons-logging-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/commons-logging-1.2.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-annotations-2.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-annotations-2.5.0.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-core-2.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-core-2.5.0.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-databind-2.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/jackson-databind-2.5.0.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/jjwt-0.7.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/jjwt-0.7.0.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/spring-aop-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/spring-aop-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/spring-beans-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/spring-beans-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/spring-context-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/spring-context-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/spring-core-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/spring-core-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/spring-expression-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/spring-expression-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/spring-web-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/spring-web-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/spring-webmvc-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/WEB-INF/lib/spring-webmvc-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/LayeredEmployeeExample-0.0.1-SNAPSHOT/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

The XMLHttpRequest Object

6 | 7 | 8 | 9 |

10 | 11 | 12 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/classes/com/employee/config/EmployeeConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/classes/com/employee/config/EmployeeConfig.class -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/classes/com/employee/controller/EmployeeController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/classes/com/employee/controller/EmployeeController.class -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/classes/com/employee/dal/EmployeeDAL.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/classes/com/employee/dal/EmployeeDAL.class -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/classes/com/employee/model/Employee.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/classes/com/employee/model/Employee.class -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/classes/com/employee/service/EmployeeService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/LayeredArchEmployeeExample/target/classes/com/employee/service/EmployeeService.class -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | #Created by Apache Maven 3.3.9 2 | groupId=LayeredEmployeeExample 3 | artifactId=LayeredEmployeeExample 4 | version=0.0.1-SNAPSHOT 5 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | com/employee/controller/EmployeeController.class 2 | com/employee/config/EmployeeConfig.class 3 | com/employee/dal/EmployeeDAL.class 4 | com/employee/model/Employee.class 5 | com/employee/service/EmployeeService.class 6 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/LayeredArchEmployeeExample/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | /Users/kamalmeetsingh/eclipse-workspace/LayeredArchEmployeeExample/src/com/employee/dal/EmployeeDAL.java 2 | /Users/kamalmeetsingh/eclipse-workspace/LayeredArchEmployeeExample/src/com/employee/controller/EmployeeController.java 3 | /Users/kamalmeetsingh/eclipse-workspace/LayeredArchEmployeeExample/src/com/employee/service/EmployeeService.java 4 | /Users/kamalmeetsingh/eclipse-workspace/LayeredArchEmployeeExample/src/com/employee/model/Employee.java 5 | /Users/kamalmeetsingh/eclipse-workspace/LayeredArchEmployeeExample/src/com/employee/config/EmployeeConfig.java 6 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=9 4 | org.eclipse.jdt.core.compiler.compliance=9 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 8 | org.eclipse.jdt.core.compiler.source=9 9 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/WebContent/WEB-INF/pages/employees.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> 2 | 3 | 4 | 5 | 6 | Welcome to Spring 7 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
NameEmailAddressTelephoneAction
${employee.id}${employee.name}${employee.designation}
26 | 27 | 28 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/src/com/employee/config/EmployeeConfig.java: -------------------------------------------------------------------------------- 1 | package com.employee.config; 2 | 3 | import org.springframework.context.annotation.Bean; 4 | import org.springframework.context.annotation.ComponentScan; 5 | import org.springframework.context.annotation.Configuration; 6 | import org.springframework.web.servlet.ViewResolver; 7 | import org.springframework.web.servlet.config.annotation.EnableWebMvc; 8 | import org.springframework.web.servlet.view.InternalResourceViewResolver; 9 | import org.springframework.web.servlet.view.JstlView; 10 | 11 | @EnableWebMvc 12 | @Configuration 13 | @ComponentScan(basePackages = "com.employee.*") 14 | /** 15 | * The main Configuration class file. 16 | */ 17 | public class EmployeeConfig { 18 | 19 | @Bean 20 | /** 21 | * Configuration for view resolver 22 | */ 23 | public ViewResolver viewResolver() { 24 | InternalResourceViewResolver viewResolver = new InternalResourceViewResolver(); 25 | viewResolver.setViewClass(JstlView.class); 26 | viewResolver.setPrefix("/WEB-INF/pages/"); 27 | viewResolver.setSuffix(".jsp"); 28 | return viewResolver; 29 | } 30 | } -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/src/com/employee/dal/EmployeeDAL.java: -------------------------------------------------------------------------------- 1 | package com.employee.dal; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import com.employee.model.Employee; 7 | 8 | /** 9 | * This class handle all the Employee Related Database operations. 10 | * 11 | */ 12 | public class EmployeeDAL { 13 | 14 | /** 15 | * This methods fetches employee list and returns to the caller. 16 | * @return EmployeeList 17 | */ 18 | public List getEmployeeList(){ 19 | 20 | List empList = new ArrayList(); 21 | // One will need to create a DB connection and fetch Employees 22 | // Or we can use ORM like hibernate or frameworks like mybatis 23 | // For this example we are returning a dummy list 24 | Employee emp1 = new Employee(); 25 | emp1.setId("1"); 26 | emp1.setName("Dave"); 27 | emp1.setDesignation("Manager"); 28 | Employee emp2 = new Employee(); 29 | emp2.setId("2"); 30 | emp2.setName("John"); 31 | emp2.setDesignation("Engineer"); 32 | empList.add(emp1); 33 | empList.add(emp2); 34 | return empList; 35 | 36 | 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/src/com/employee/model/Employee.java: -------------------------------------------------------------------------------- 1 | package com.employee.model; 2 | 3 | public class Employee { 4 | String name; 5 | String id; 6 | String designation; 7 | 8 | public String getName() { 9 | return name; 10 | } 11 | 12 | public void setName(String name) { 13 | this.name = name; 14 | } 15 | 16 | public String getId() { 17 | return id; 18 | } 19 | 20 | public void setId(String id) { 21 | this.id = id; 22 | } 23 | 24 | public String getDesignation() { 25 | return designation; 26 | } 27 | 28 | public void setDesignation(String designation) { 29 | this.designation = designation; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT.war: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT.war -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/config/EmployeeConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/config/EmployeeConfig.class -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/controller/EmployeeController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/controller/EmployeeController.class -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/dal/EmployeeDAL.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/dal/EmployeeDAL.class -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/model/Employee.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/classes/com/employee/model/Employee.class -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/commons-logging-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/commons-logging-1.2.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/jsp-api-2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/jsp-api-2.1.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/jstl-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/jstl-1.2.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/jstl-api-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/jstl-api-1.2.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/spring-aop-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/spring-aop-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/spring-beans-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/spring-beans-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/spring-context-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/spring-context-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/spring-core-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/spring-core-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/spring-expression-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/spring-expression-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/spring-web-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/spring-web-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/spring-webmvc-4.3.9.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/lib/spring-webmvc-4.3.9.RELEASE.jar -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/SpringMVC-0.0.1-SNAPSHOT/WEB-INF/pages/employees.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> 2 | 3 | 4 | 5 | 6 | Welcome to Spring 7 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
NameEmailAddressTelephoneAction
${employee.id}${employee.name}${employee.designation}
26 | 27 | 28 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/classes/com/employee/config/EmployeeConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/SpringMVC/target/classes/com/employee/config/EmployeeConfig.class -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/classes/com/employee/controller/EmployeeController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/SpringMVC/target/classes/com/employee/controller/EmployeeController.class -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/classes/com/employee/dal/EmployeeDAL.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/SpringMVC/target/classes/com/employee/dal/EmployeeDAL.class -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/classes/com/employee/model/Employee.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter08/chapter8 code/SpringMVC/target/classes/com/employee/model/Employee.class -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | #Created by Apache Maven 3.3.9 2 | groupId=SpringMVC 3 | artifactId=SpringMVC 4 | version=0.0.1-SNAPSHOT 5 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | com/employee/controller/EmployeeController.class 2 | com/employee/config/EmployeeConfig.class 3 | com/employee/dal/EmployeeDAL.class 4 | com/employee/model/Employee.class 5 | -------------------------------------------------------------------------------- /Chapter08/chapter8 code/SpringMVC/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | /Users/kamalmeetsingh/eclipse-workspace/SpringMVC/src/com/employee/controller/EmployeeController.java 2 | /Users/kamalmeetsingh/eclipse-workspace/SpringMVC/src/com/employee/model/Employee.java 3 | /Users/kamalmeetsingh/eclipse-workspace/SpringMVC/src/com/employee/config/EmployeeConfig.java 4 | /Users/kamalmeetsingh/eclipse-workspace/SpringMVC/src/com/employee/dal/EmployeeDAL.java 5 | -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/.DS_Store -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java10Example/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java10Example/.DS_Store -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java10Example/MyClass.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This class shows usage of "var" 3 | */ 4 | public class MyClass { 5 | public static void main(String s[]) { 6 | var num = 10; 7 | var str = "This is a String"; 8 | var dbl = 10.01; 9 | var lst = new ArrayList(); 10 | 11 | System.out.println("num:"+num); 12 | System.out.println("str:"+str); 13 | System.out.println("dbl:"+dbl); 14 | System.out.println("lst:"+lst); 15 | 16 | } 17 | } -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/.DS_Store -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/.DS_Store -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/bin/java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/bin/java -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/bin/keytool: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/bin/keytool -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/conf/security/policy/limited/default_US_export.policy: -------------------------------------------------------------------------------- 1 | // Default US Export policy file. 2 | 3 | grant { 4 | // There is no restriction to any algorithms. 5 | permission javax.crypto.CryptoAllPermission; 6 | }; 7 | -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/conf/security/policy/limited/default_local.policy: -------------------------------------------------------------------------------- 1 | // Some countries have import limits on crypto strength. This policy file 2 | // is worldwide importable. 3 | 4 | grant { 5 | permission javax.crypto.CryptoPermission "DES", 64; 6 | permission javax.crypto.CryptoPermission "DESede", *; 7 | permission javax.crypto.CryptoPermission "RC2", 128, 8 | "javax.crypto.spec.RC2ParameterSpec", 128; 9 | permission javax.crypto.CryptoPermission "RC4", 128; 10 | permission javax.crypto.CryptoPermission "RC5", 128, 11 | "javax.crypto.spec.RC5ParameterSpec", *, 12, *; 12 | permission javax.crypto.CryptoPermission "RSA", *; 13 | permission javax.crypto.CryptoPermission *, 128; 14 | }; 15 | -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/conf/security/policy/limited/exempt_local.policy: -------------------------------------------------------------------------------- 1 | // Some countries have import limits on crypto strength, but may allow for 2 | // these exemptions if the exemption mechanism is used. 3 | 4 | grant { 5 | // There is no restriction to any algorithms if KeyRecovery is enforced. 6 | permission javax.crypto.CryptoPermission *, "KeyRecovery"; 7 | 8 | // There is no restriction to any algorithms if KeyEscrow is enforced. 9 | permission javax.crypto.CryptoPermission *, "KeyEscrow"; 10 | 11 | // There is no restriction to any algorithms if KeyWeakening is enforced. 12 | permission javax.crypto.CryptoPermission *, "KeyWeakening"; 13 | }; 14 | -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/conf/security/policy/unlimited/default_US_export.policy: -------------------------------------------------------------------------------- 1 | // Default US Export policy file. 2 | 3 | grant { 4 | // There is no restriction to any algorithms. 5 | permission javax.crypto.CryptoAllPermission; 6 | }; 7 | -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/conf/security/policy/unlimited/default_local.policy: -------------------------------------------------------------------------------- 1 | // Country-specific policy file for countries with no limits on crypto strength. 2 | 3 | grant { 4 | // There is no restriction to any algorithms. 5 | permission javax.crypto.CryptoAllPermission; 6 | }; 7 | -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/include/darwin/jni_md.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved. 3 | * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 4 | * 5 | * 6 | * 7 | * 8 | * 9 | * 10 | * 11 | * 12 | * 13 | * 14 | * 15 | * 16 | * 17 | * 18 | * 19 | * 20 | * 21 | * 22 | * 23 | * 24 | */ 25 | 26 | #ifndef _JAVASOFT_JNI_MD_H_ 27 | #define _JAVASOFT_JNI_MD_H_ 28 | 29 | #define JNIEXPORT __attribute__((visibility("default"))) 30 | #define JNIIMPORT __attribute__((visibility("default"))) 31 | #define JNICALL 32 | 33 | typedef int jint; 34 | #ifdef _LP64 /* 64-bit */ 35 | typedef long jlong; 36 | #else 37 | typedef long long jlong; 38 | #endif 39 | 40 | typedef signed char jbyte; 41 | 42 | #endif /* !_JAVASOFT_JNI_MD_H_ */ 43 | -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/legal/java.base/COPYRIGHT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/legal/java.base/COPYRIGHT -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/legal/java.base/LICENSE: -------------------------------------------------------------------------------- 1 | Please refer to http://java.com/license 2 | -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/jli/libjli.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/jli/libjli.dylib -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/jrt-fs.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/jrt-fs.jar -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/jspawnhelper: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/jspawnhelper -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/jvm.cfg: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 2 | # ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 3 | # 4 | # 5 | # 6 | # 7 | # 8 | # 9 | # 10 | # 11 | # 12 | # 13 | # 14 | # 15 | # 16 | # 17 | # 18 | # 19 | # 20 | # 21 | # 22 | # 23 | # 24 | # List of JVMs that can be used as an option to java, javac, etc. 25 | # Order is important -- first in this list is the default JVM. 26 | # NOTE that both this file and its format are UNSUPPORTED and 27 | # WILL GO AWAY in a future release. 28 | # 29 | # You may also select a JVM in an arbitrary location with the 30 | # "-XXaltjvm=" option, but that too is unsupported 31 | # and may not be available in a future release. 32 | # 33 | -server KNOWN 34 | -client IGNORE 35 | -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/libjava.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/libjava.dylib -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/libjimage.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/libjimage.dylib -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/libjsig.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/libjsig.dylib -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/libnet.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/libnet.dylib -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/libnio.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/libnio.dylib -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/libosxsecurity.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/libosxsecurity.dylib -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/libverify.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/libverify.dylib -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/libzip.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/libzip.dylib -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/modules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/modules -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/security/cacerts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/security/cacerts -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/security/public_suffix_list.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/security/public_suffix_list.dat -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/security/trusted.libraries: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/security/trusted.libraries -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/server/libjsig.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/server/libjsig.dylib -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/server/libjvm.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/server/libjvm.dylib -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/tzdb.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/calculaterjre/lib/tzdb.dat -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/calculaterjre/release: -------------------------------------------------------------------------------- 1 | JAVA_VERSION="9.0.4" 2 | MODULES="java.base com.example com.example.user" 3 | -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/output/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/output/.DS_Store -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/output/classes/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/output/classes/.DS_Store -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/output/classes/com/example/calc/Calculator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/output/classes/com/example/calc/Calculator.class -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/output/classes/module-info.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/output/classes/module-info.class -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/output/lib/example.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/output/lib/example.jar -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/output/lib/java.base.jmod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/output/lib/java.base.jmod -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/output/lib/user.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/output/lib/user.jar -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/output/userclasses/com/example/user/User.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/output/userclasses/com/example/user/User.class -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/output/userclasses/module-info.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/output/userclasses/module-info.class -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/provider/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/provider/.DS_Store -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/provider/com.example/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/provider/com.example/.DS_Store -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/provider/com.example/com/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/provider/com.example/com/.DS_Store -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/provider/com.example/com/example/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/provider/com.example/com/example/.DS_Store -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/provider/com.example/com/example/calc/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/provider/com.example/com/example/calc/.DS_Store -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/provider/com.example/com/example/calc/Calculator.java: -------------------------------------------------------------------------------- 1 | package com.example.calc; 2 | 3 | /** 4 | * This class implements calculating functions on integers. 5 | */ 6 | public class Calculator{ 7 | 8 | /** 9 | * This method adds two numbers. 10 | */ 11 | public int add(int num1, int num2){ 12 | return num1+num2; 13 | } 14 | 15 | /** 16 | * This method returns difference between two numbers. 17 | */ 18 | public int diff(int num1, int num2){ 19 | return num1-num2; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/provider/com.example/module-info.java: -------------------------------------------------------------------------------- 1 | module com.example { 2 | requires java.base; 3 | exports com.example.calc; 4 | } 5 | -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/user/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Design-Patterns-and-Best-Practices-in-Java/0fcc9e386d5fd29de58c003caf37cdc8cd294306/Chapter09/Chapter 9 code/Java9Example/user/.DS_Store -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/user/com.example.user/com/example/user/User.java: -------------------------------------------------------------------------------- 1 | package com.example.user; 2 | import com.example.calc.*; 3 | 4 | /** 5 | * This classes uses calculator module 6 | */ 7 | public class User{ 8 | 9 | public static void main(String s[]){ 10 | Calculator calculator = new Calculator(); 11 | System.out.println(calculator.add(1,2)); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Chapter09/Chapter 9 code/Java9Example/user/com.example.user/module-info.java: -------------------------------------------------------------------------------- 1 | module com.example.user { 2 | requires com.example; 3 | } 4 | -------------------------------------------------------------------------------- /Chapter09/__MACOSX/Chapter 9 code/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx ATTRxx -------------------------------------------------------------------------------- /Chapter09/__MACOSX/Chapter 9 code/Java10Example/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx ATTRxx -------------------------------------------------------------------------------- /Chapter09/__MACOSX/Chapter 9 code/Java9Example/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx ATTRxx -------------------------------------------------------------------------------- /Chapter09/__MACOSX/Chapter 9 code/Java9Example/calculaterjre/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx ATTRxx -------------------------------------------------------------------------------- /Chapter09/__MACOSX/Chapter 9 code/Java9Example/output/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx ATTRxx -------------------------------------------------------------------------------- /Chapter09/__MACOSX/Chapter 9 code/Java9Example/output/classes/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx ATTRxx -------------------------------------------------------------------------------- /Chapter09/__MACOSX/Chapter 9 code/Java9Example/provider/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx ATTRxx -------------------------------------------------------------------------------- /Chapter09/__MACOSX/Chapter 9 code/Java9Example/provider/com.example/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx ATTRxx -------------------------------------------------------------------------------- /Chapter09/__MACOSX/Chapter 9 code/Java9Example/provider/com.example/com/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx ATTRxx -------------------------------------------------------------------------------- /Chapter09/__MACOSX/Chapter 9 code/Java9Example/provider/com.example/com/example/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx ATTRxx -------------------------------------------------------------------------------- /Chapter09/__MACOSX/Chapter 9 code/Java9Example/provider/com.example/com/example/calc/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx ATTRxx -------------------------------------------------------------------------------- /Chapter09/__MACOSX/Chapter 9 code/Java9Example/user/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx ATTRxx -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Packt 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | --------------------------------------------------------------------------------