├── .gitignore
├── LICENSE
├── src
└── main
│ ├── java
│ └── me
│ │ └── sumithpuri
│ │ └── github
│ │ └── assam
│ │ ├── spring
│ │ ├── di
│ │ │ └── sample
│ │ │ │ ├── Quest.class
│ │ │ │ ├── Knight.class
│ │ │ │ ├── HolyGrail.class
│ │ │ │ ├── KnightApp.class
│ │ │ │ ├── HolyGrailQuest.class
│ │ │ │ ├── QuestFailedException.class
│ │ │ │ ├── GrailNotFoundException.class
│ │ │ │ ├── KnightOfTheRoundTable.class
│ │ │ │ ├── QuestFailedException.java
│ │ │ │ ├── GrailNotFoundException.java
│ │ │ │ ├── Quest.java
│ │ │ │ ├── Knight.java
│ │ │ │ ├── HolyGrailQuest.java
│ │ │ │ ├── KnightApp.java
│ │ │ │ ├── KnightOfTheRoundTable.java
│ │ │ │ └── HolyGrail.java
│ │ └── basic
│ │ │ └── sample
│ │ │ ├── SpringMain.class
│ │ │ ├── SpringSample.class
│ │ │ ├── SpringSampleIf.class
│ │ │ ├── SpringSampleIf.java
│ │ │ ├── SpringSample.java
│ │ │ └── SpringMainApp.java
│ │ └── app
│ │ └── Assam.java
│ └── resources
│ ├── spring-sample.xml
│ └── knight.xml
├── pom.xml
└── README.md
/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Sumith Kumar Puri
4 |
5 | [Refer Each Code File for the Actual Licence Statement]
6 |
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/di/sample/Quest.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sumithpuri/skp-mini-marathon-assam/HEAD/src/main/java/me/sumithpuri/github/assam/spring/di/sample/Quest.class
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/di/sample/Knight.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sumithpuri/skp-mini-marathon-assam/HEAD/src/main/java/me/sumithpuri/github/assam/spring/di/sample/Knight.class
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/di/sample/HolyGrail.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sumithpuri/skp-mini-marathon-assam/HEAD/src/main/java/me/sumithpuri/github/assam/spring/di/sample/HolyGrail.class
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/di/sample/KnightApp.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sumithpuri/skp-mini-marathon-assam/HEAD/src/main/java/me/sumithpuri/github/assam/spring/di/sample/KnightApp.class
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/basic/sample/SpringMain.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sumithpuri/skp-mini-marathon-assam/HEAD/src/main/java/me/sumithpuri/github/assam/spring/basic/sample/SpringMain.class
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/basic/sample/SpringSample.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sumithpuri/skp-mini-marathon-assam/HEAD/src/main/java/me/sumithpuri/github/assam/spring/basic/sample/SpringSample.class
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/di/sample/HolyGrailQuest.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sumithpuri/skp-mini-marathon-assam/HEAD/src/main/java/me/sumithpuri/github/assam/spring/di/sample/HolyGrailQuest.class
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/basic/sample/SpringSampleIf.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sumithpuri/skp-mini-marathon-assam/HEAD/src/main/java/me/sumithpuri/github/assam/spring/basic/sample/SpringSampleIf.class
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/di/sample/QuestFailedException.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sumithpuri/skp-mini-marathon-assam/HEAD/src/main/java/me/sumithpuri/github/assam/spring/di/sample/QuestFailedException.class
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/di/sample/GrailNotFoundException.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sumithpuri/skp-mini-marathon-assam/HEAD/src/main/java/me/sumithpuri/github/assam/spring/di/sample/GrailNotFoundException.class
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/di/sample/KnightOfTheRoundTable.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sumithpuri/skp-mini-marathon-assam/HEAD/src/main/java/me/sumithpuri/github/assam/spring/di/sample/KnightOfTheRoundTable.class
--------------------------------------------------------------------------------
/src/main/resources/spring-sample.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/main/resources/knight.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/di/sample/QuestFailedException.java:
--------------------------------------------------------------------------------
1 | package me.sumithpuri.github.assam.spring.di.sample;
2 |
3 | /**
4 | * MIT License
5 | *
6 | * Copyright (c) 2018-19, Sumith Kumar Puri
7 |
8 | * GitHub URL https://github.com/sumithpuri
9 | * Code Sample Brainbench Spring 2.5 Certification [+ Spring In Action Samples]
10 | * Sample Topic Core Spring (Basics, Dependency Injection)
11 | * Certificate URL https://goo.gl/X321kd
12 | * Package Prefix me.sumithpuri.github.assam
13 | * Project Codename assam
14 | * Contact E-Mail code@sumithpuri.me
15 | * Contact WhatsApp +91 9591497974
16 | *
17 | *
18 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
19 | * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
20 | * rights to use, copy, modify, merge, publish, distribute, sub-license and/or sell copies of the Software and to permit
21 | * persons to whom the Software is furnished to do so, subject to the following conditions:
22 | *
23 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
24 | * Software.
25 | *
26 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
27 | * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
28 | * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
29 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 | public class QuestFailedException extends Exception {
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/di/sample/GrailNotFoundException.java:
--------------------------------------------------------------------------------
1 | package me.sumithpuri.github.assam.spring.di.sample;
2 |
3 | /**
4 | * MIT License
5 | *
6 | * Copyright (c) 2018-19, Sumith Kumar Puri
7 |
8 | * GitHub URL https://github.com/sumithpuri
9 | * Code Sample Brainbench Spring 2.5 Certification [+ Spring In Action Samples]
10 | * Sample Topic Core Spring (Basics, Dependency Injection)
11 | * Certificate URL https://goo.gl/X321kd
12 | * Package Prefix me.sumithpuri.github.assam
13 | * Project Codename assam
14 | * Contact E-Mail code@sumithpuri.me
15 | * Contact WhatsApp +91 9591497974
16 | *
17 | *
18 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
19 | * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
20 | * rights to use, copy, modify, merge, publish, distribute, sub-license and/or sell copies of the Software and to permit
21 | * persons to whom the Software is furnished to do so, subject to the following conditions:
22 | *
23 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
24 | * Software.
25 | *
26 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
27 | * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
28 | * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
29 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 | public class GrailNotFoundException extends Exception {
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/basic/sample/SpringSampleIf.java:
--------------------------------------------------------------------------------
1 | package me.sumithpuri.github.assam.spring.basic.sample;
2 |
3 | /**
4 | * MIT License
5 | *
6 | * Copyright (c) 2018-19, Sumith Kumar Puri
7 |
8 | * GitHub URL https://github.com/sumithpuri
9 | * Code Sample Brainbench Spring 2.5 Certification [+ Spring In Action Samples]
10 | * Sample Topic Core Spring (Basics, Dependency Injection)
11 | * Certificate URL https://goo.gl/X321kd
12 | * Package Prefix me.sumithpuri.github.assam
13 | * Project Codename assam
14 | * Contact E-Mail code@sumithpuri.me
15 | * Contact WhatsApp +91 9591497974
16 | *
17 | *
18 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
19 | * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
20 | * rights to use, copy, modify, merge, publish, distribute, sub-license and/or sell copies of the Software and to permit
21 | * persons to whom the Software is furnished to do so, subject to the following conditions:
22 | *
23 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
24 | * Software.
25 | *
26 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
27 | * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
28 | * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
29 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 | public interface SpringSampleIf {
32 |
33 | public void whereIsJesus();
34 | }
35 |
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/di/sample/Quest.java:
--------------------------------------------------------------------------------
1 | package me.sumithpuri.github.assam.spring.di.sample;
2 |
3 | /**
4 | * MIT License
5 | *
6 | * Copyright (c) 2018-19, Sumith Kumar Puri
7 |
8 | * GitHub URL https://github.com/sumithpuri
9 | * Code Sample Brainbench Spring 2.5 Certification [+ Spring In Action Samples]
10 | * Sample Topic Core Spring (Basics, Dependency Injection)
11 | * Certificate URL https://goo.gl/X321kd
12 | * Package Prefix me.sumithpuri.github.assam
13 | * Project Codename assam
14 | * Contact E-Mail code@sumithpuri.me
15 | * Contact WhatsApp +91 9591497974
16 | *
17 | *
18 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
19 | * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
20 | * rights to use, copy, modify, merge, publish, distribute, sub-license and/or sell copies of the Software and to permit
21 | * persons to whom the Software is furnished to do so, subject to the following conditions:
22 | *
23 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
24 | * Software.
25 | *
26 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
27 | * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
28 | * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
29 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 | public interface Quest {
32 |
33 | public abstract HolyGrail embark() throws QuestFailedException;
34 |
35 | }
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/di/sample/Knight.java:
--------------------------------------------------------------------------------
1 | package me.sumithpuri.github.assam.spring.di.sample;
2 |
3 | /**
4 | * MIT License
5 | *
6 | * Copyright (c) 2018-19, Sumith Kumar Puri
7 |
8 | * GitHub URL https://github.com/sumithpuri
9 | * Code Sample Brainbench Spring 2.5 Certification [+ Spring In Action Samples]
10 | * Sample Topic Core Spring (Basics, Dependency Injection)
11 | * Certificate URL https://goo.gl/X321kd
12 | * Package Prefix me.sumithpuri.github.assam
13 | * Project Codename assam
14 | * Contact E-Mail code@sumithpuri.me
15 | * Contact WhatsApp +91 9591497974
16 | *
17 | *
18 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
19 | * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
20 | * rights to use, copy, modify, merge, publish, distribute, sub-license and/or sell copies of the Software and to permit
21 | * persons to whom the Software is furnished to do so, subject to the following conditions:
22 | *
23 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
24 | * Software.
25 | *
26 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
27 | * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
28 | * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
29 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 | public interface Knight {
32 |
33 | public abstract Object embarkOnQuest() throws QuestFailedException;
34 |
35 | public abstract String getName();
36 | }
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/di/sample/HolyGrailQuest.java:
--------------------------------------------------------------------------------
1 | package me.sumithpuri.github.assam.spring.di.sample;
2 |
3 | /**
4 | * MIT License
5 | *
6 | * Copyright (c) 2018-19, Sumith Kumar Puri
7 |
8 | * GitHub URL https://github.com/sumithpuri
9 | * Code Sample Brainbench Spring 2.5 Certification [+ Spring In Action Samples]
10 | * Sample Topic Core Spring (Basics, Dependency Injection)
11 | * Certificate URL https://goo.gl/X321kd
12 | * Package Prefix me.sumithpuri.github.assam
13 | * Project Codename assam
14 | * Contact E-Mail code@sumithpuri.me
15 | * Contact WhatsApp +91 9591497974
16 | *
17 | *
18 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
19 | * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
20 | * rights to use, copy, modify, merge, publish, distribute, sub-license and/or sell copies of the Software and to permit
21 | * persons to whom the Software is furnished to do so, subject to the following conditions:
22 | *
23 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
24 | * Software.
25 | *
26 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
27 | * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
28 | * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
29 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 | public class HolyGrailQuest implements Quest {
32 |
33 | public HolyGrailQuest() {
34 |
35 | }
36 |
37 | /* (non-Javadoc)
38 | * @see me.sumithpuri.github.assam.spring.di.sample.Quest#embark()
39 | */
40 | public HolyGrail embark() throws QuestFailedException {
41 | return new HolyGrail();
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
4 | 4.0.0
5 |
6 | me.sumithpuri.github
7 | skp-mini-marathon-assam
8 | 0.0.1-SNAPSHOT
9 | jar
10 |
11 | Assam : Brainbench Spring 2.5 Certification
12 | http://maven.apache.org
13 |
14 |
15 | UTF-8
16 | 9
17 | 9
18 | false
19 |
20 |
21 |
22 |
23 | junit
24 | junit
25 | 3.8.1
26 | test
27 |
28 |
29 |
30 | org.springframework
31 | spring
32 | 2.5.5
33 |
34 |
35 |
36 |
37 |
38 |
39 | org.apache.maven.plugins
40 | maven-compiler-plugin
41 | 3.6.1
42 |
43 |
44 | org.codehaus.mojo
45 | exec-maven-plugin
46 | 1.6.0
47 |
48 |
49 | test
50 |
51 | java
52 |
53 |
54 | me.sumithpuri.github.assam.app.Assam
55 | true
56 |
57 |
58 |
59 |
60 |
61 |
62 | Brainbench Spring 2.5 Certification (+ Spring In Action Samples)
63 |
64 |
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/basic/sample/SpringSample.java:
--------------------------------------------------------------------------------
1 | package me.sumithpuri.github.assam.spring.basic.sample;
2 |
3 | /**
4 | * MIT License
5 | *
6 | * Copyright (c) 2018-19, Sumith Kumar Puri
7 |
8 | * GitHub URL https://github.com/sumithpuri
9 | * Code Sample Brainbench Spring 2.5 Certification [+ Spring In Action Samples]
10 | * Sample Topic Core Spring (Basics, Dependency Injection)
11 | * Certificate URL https://goo.gl/X321kd
12 | * Package Prefix me.sumithpuri.github.assam
13 | * Project Codename assam
14 | * Contact E-Mail code@sumithpuri.me
15 | * Contact WhatsApp +91 9591497974
16 | *
17 | *
18 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
19 | * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
20 | * rights to use, copy, modify, merge, publish, distribute, sub-license and/or sell copies of the Software and to permit
21 | * persons to whom the Software is furnished to do so, subject to the following conditions:
22 | *
23 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
24 | * Software.
25 | *
26 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
27 | * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
28 | * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
29 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 | public class SpringSample implements SpringSampleIf {
32 |
33 | String status = null;
34 |
35 | public SpringSample() {
36 |
37 | }
38 |
39 | public SpringSample(String status) {
40 | this.status = status;
41 | }
42 |
43 | public void whereIsJesus() {
44 |
45 | System.out.println("Jesus is" + status + "!");
46 | }
47 |
48 | /**
49 | * @return the status
50 | */
51 | public synchronized String getStatus() {
52 | return status;
53 | }
54 |
55 | /**
56 | * @param status the status to set
57 | */
58 | public synchronized void setStatus(String status) {
59 | this.status = status;
60 | }
61 |
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/basic/sample/SpringMainApp.java:
--------------------------------------------------------------------------------
1 | package me.sumithpuri.github.assam.spring.basic.sample;
2 |
3 | import org.springframework.beans.factory.BeanFactory;
4 | import org.springframework.beans.factory.xml.XmlBeanFactory;
5 | import org.springframework.core.io.ClassPathResource;
6 | import org.springframework.core.io.FileSystemResource;
7 |
8 | /**
9 | * MIT License
10 | *
11 | * Copyright (c) 2018-19, Sumith Kumar Puri
12 |
13 | * GitHub URL https://github.com/sumithpuri
14 | * Code Sample Brainbench Spring 2.5 Certification [+ Spring In Action Samples]
15 | * Sample Topic Core Spring (Basics, Dependency Injection)
16 | * Certificate URL https://goo.gl/X321kd
17 | * Package Prefix me.sumithpuri.github.assam
18 | * Project Codename assam
19 | * Contact E-Mail code@sumithpuri.me
20 | * Contact WhatsApp +91 9591497974
21 | *
22 | *
23 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
24 | * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
25 | * rights to use, copy, modify, merge, publish, distribute, sub-license and/or sell copies of the Software and to permit
26 | * persons to whom the Software is furnished to do so, subject to the following conditions:
27 | *
28 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
29 | * Software.
30 | *
31 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
32 | * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
33 | * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
34 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35 | */
36 | public class SpringMainApp {
37 |
38 | public static void main(String[] args) throws Exception {
39 |
40 | demoCoreSpringBasicDI();
41 | }
42 |
43 | public static void demoCoreSpringBasicDI() {
44 |
45 | BeanFactory factory = new XmlBeanFactory(new ClassPathResource("spring-sample.xml"));
46 | SpringSampleIf springService = (SpringSampleIf) factory.getBean("springSampleService");
47 | springService.whereIsJesus();
48 | }
49 | }
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/di/sample/KnightApp.java:
--------------------------------------------------------------------------------
1 | package me.sumithpuri.github.assam.spring.di.sample;
2 |
3 | import org.springframework.context.ApplicationContext;
4 | import org.springframework.context.support.ClassPathXmlApplicationContext;
5 |
6 | /**
7 | * MIT License
8 | *
9 | * Copyright (c) 2018-19, Sumith Kumar Puri
10 |
11 | * GitHub URL https://github.com/sumithpuri
12 | * Code Sample Brainbench Spring 2.5 Certification [+ Spring In Action Samples]
13 | * Sample Topic Core Spring (Basics, Dependency Injection)
14 | * Certificate URL https://goo.gl/X321kd
15 | * Package Prefix me.sumithpuri.github.assam
16 | * Project Codename assam
17 | * Contact E-Mail code@sumithpuri.me
18 | * Contact WhatsApp +91 9591497974
19 | *
20 | *
21 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
22 | * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
23 | * rights to use, copy, modify, merge, publish, distribute, sub-license and/or sell copies of the Software and to permit
24 | * persons to whom the Software is furnished to do so, subject to the following conditions:
25 | *
26 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
27 | * Software.
28 | *
29 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
30 | * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
31 | * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
32 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 | */
34 | public class KnightApp {
35 |
36 | public static void main(String[] args) throws Exception {
37 |
38 | demoCoreSpringBasicDI();
39 | }
40 |
41 | public static void demoCoreSpringBasicDI() throws Exception {
42 |
43 | // BeanFactory factory = new XmlBeanFactory(new FileSystemResource("knight.xml"));
44 | // Knight knight = (Knight) factory.getBean("knight");
45 | // Object object = knight.embarkOnQuest();
46 | // System.out.println(object.getClass().getName());
47 |
48 | ApplicationContext ctx = new ClassPathXmlApplicationContext("knight.xml");
49 | Knight knight = (Knight) ctx.getBean("knight");
50 | knight.embarkOnQuest();
51 | }
52 | }
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/di/sample/KnightOfTheRoundTable.java:
--------------------------------------------------------------------------------
1 | package me.sumithpuri.github.assam.spring.di.sample;
2 |
3 | /**
4 | * MIT License
5 | *
6 | * Copyright (c) 2018-19, Sumith Kumar Puri
7 |
8 | * GitHub URL https://github.com/sumithpuri
9 | * Code Sample Brainbench Spring 2.5 Certification [+ Spring In Action Samples]
10 | * Sample Topic Core Spring (Basics, Dependency Injection)
11 | * Certificate URL https://goo.gl/X321kd
12 | * Package Prefix me.sumithpuri.github.assam
13 | * Project Codename assam
14 | * Contact E-Mail code@sumithpuri.me
15 | * Contact WhatsApp +91 9591497974
16 | *
17 | *
18 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
19 | * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
20 | * rights to use, copy, modify, merge, publish, distribute, sub-license and/or sell copies of the Software and to permit
21 | * persons to whom the Software is furnished to do so, subject to the following conditions:
22 | *
23 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
24 | * Software.
25 | *
26 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
27 | * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
28 | * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
29 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 | */
31 | public class KnightOfTheRoundTable implements Knight {
32 |
33 | private String name;
34 | private Quest quest;
35 |
36 | public KnightOfTheRoundTable(String name) {
37 | this.name = name;
38 | }
39 |
40 | /* (non-Javadoc)
41 | * @see me.sumithpuri.github.assam.spring.di.sample.Knight#embarkOnQuest()
42 | */
43 | public Object embarkOnQuest() throws QuestFailedException {
44 |
45 | System.out.println("Knight: " + this.name + " >> Embarked On: " + this.quest.getClass().getSimpleName());
46 | HolyGrail holyGrail = quest.embark();
47 |
48 | // debug/test print statements
49 | System.out.println("Knight: " + this.name + " >> Found: " + holyGrail.getClass().getSimpleName());
50 |
51 | return holyGrail;
52 | }
53 |
54 | public void setQuest(Quest quest) {
55 | this.quest=quest;
56 | }
57 |
58 | public String getName() {
59 | return this.name;
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/app/Assam.java:
--------------------------------------------------------------------------------
1 | package me.sumithpuri.github.assam.app;
2 |
3 | import me.sumithpuri.github.assam.spring.basic.sample.SpringMainApp;
4 | import me.sumithpuri.github.assam.spring.di.sample.KnightApp;
5 |
6 | /**
7 | * MIT License
8 | *
9 | * Copyright (c) 2018-19, Sumith Kumar Puri
10 |
11 | * GitHub URL https://github.com/sumithpuri
12 | * Code Sample Brainbench Spring 2.5 Certification [+ Spring In Action Samples]
13 | * Sample Topic Core Spring (Basics, Dependency Injection)
14 | * Certificate URL https://goo.gl/X321kd
15 | * Package Prefix me.sumithpuri.github.assam
16 | * Project Codename assam
17 | * Contact E-Mail code@sumithpuri.me
18 | * Contact WhatsApp +91 9591497974
19 | *
20 | *
21 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
22 | * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
23 | * rights to use, copy, modify, merge, publish, distribute, sub-license and/or sell copies of the Software and to permit
24 | * persons to whom the Software is furnished to do so, subject to the following conditions:
25 | *
26 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
27 | * Software.
28 | *
29 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
30 | * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
31 | * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
32 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 | */
34 | public class Assam {
35 |
36 | // XXX Do Include the [src/main/resources] in the Classpath Before Compiling/Running
37 | public static void main(String[] args) throws Exception {
38 |
39 | System.out.println("Copyright (c) 2018-19, Sumith Kumar Puri");
40 | System.out.println();
41 | System.out.println("Project Codename Assam");
42 | System.out.println("Project Description Core Spring (Basics, Dependency Injection)");
43 | System.out.println("Certification Brainbench Spring 2.5 Certification");
44 | System.out.println("Certificate URL https://goo.gl/X321kd");
45 | System.out.println("[Developer Notes] [01] Use Java Version 9.0+ Compiler");
46 | System.out.println();
47 |
48 | System.out.println("Example of Spring Basic/DI using Bean Factory");
49 | System.out.println("---------------------------------------------");
50 | SpringMainApp.demoCoreSpringBasicDI();
51 | System.out.println();
52 | System.out.println("Example of Spring Basic/DI using Application Context");
53 | System.out.println("----------------------------------------------------");
54 |
55 | KnightApp.demoCoreSpringBasicDI();
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/src/main/java/me/sumithpuri/github/assam/spring/di/sample/HolyGrail.java:
--------------------------------------------------------------------------------
1 | package me.sumithpuri.github.assam.spring.di.sample;
2 |
3 | /**
4 | * MIT License
5 | *
6 | * Copyright (c) 2018-19, Sumith Kumar Puri
7 |
8 | * GitHub URL https://github.com/sumithpuri
9 | * Code Sample Brainbench Spring 2.5 Certification [+ Spring In Action Samples]
10 | * Certificate URL https://goo.gl/X321kd
11 | * Package Prefix me.sumithpuri.github.assam
12 | * Project Codename assam
13 | * Contact E-Mail code@sumithpuri.me
14 | * Contact WhatsApp +91 9591497974
15 | *
16 | *
17 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
18 | * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
19 | * rights to use, copy, modify, merge, publish, distribute, sub-license and/or sell copies of the Software and to permit
20 | * persons to whom the Software is furnished to do so, subject to the following conditions:
21 | *
22 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
23 | * Software.
24 | *
25 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
26 | * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
27 | * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
28 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | *//**
30 | * MIT License
31 | *
32 | * Copyright (c) 2018-19, Sumith Kumar Puri
33 |
34 | * GitHub URL https://github.com/sumithpuri
35 | * Code Sample Brainbench Spring 2.5 Certification [+ Spring In Action Samples]
36 | * Sample Topic Core Spring (Basics, Dependency Injection)
37 | * Certificate URL https://goo.gl/X321kd
38 | * Package Prefix me.sumithpuri.github.assam
39 | * Project Codename assam
40 | * Contact E-Mail code@sumithpuri.me
41 | * Contact WhatsApp +91 9591497974
42 | *
43 | *
44 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
45 | * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
46 | * rights to use, copy, modify, merge, publish, distribute, sub-license and/or sell copies of the Software and to permit
47 | * persons to whom the Software is furnished to do so, subject to the following conditions:
48 | *
49 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
50 | * Software.
51 | *
52 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
53 | * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
54 | * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
55 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
56 | */
57 | public class HolyGrail {
58 |
59 | public boolean isHoly() {
60 | return true;
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Assam (Brainbench Spring 2.5 Certification)
2 | Brainbench Spring 2.5 Certification (+ Spring In Action Samples)
3 |
4 | MIT License, Copyright (c) 2018-19, Sumith Kumar Puri
5 | https://github.com/sumithpuri
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | |Project Codename|Assam|
19 | |--|--|
20 | |Certification|Brainbench Spring 2.5 Certification|
21 | |Certificate URL|https://goo.gl/X321kd|
22 | |Sample Topic|Core Spring (Basics, Dependency Injection)|
23 | |Package Prefix|me.sumithpuri.github.assam|
24 | |GitHub URL|https://github.com/sumithpuri/skp-mini-marathon-assam|
25 | |Contact E-Mail |code@sumithpuri.xyz|
26 | |Contact Number|+91 9591497974 (WhatsApp, Viber, Telegram)|
27 | |Historical|✅ Started this Movement of 1000s of Lines of Java/EE* Code to GitHub
✅ Was a Senior Software Architect (Java/EE) in Manila*, 2018 (At Start)
✅ Named this Initial Code Journey as [ Manila Code Marathon - 2018 ]
✅ Code Is Non-Proprietary / Non-Copyright from my Work Experience.
✅ Was Back to Bangalore, Named as [ Bangalore Code Nights - 2019. ]
✅ Added More Code under [ -20 Days of Code in Benglauru- ] in 2020
✅ Celebration of Java/Java EE Code as Java Turned 25 in the Year 2020! |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |  |
38 |
39 | ❤️ Ex-Yahoo, Symantec, Huawei, Oracle*, OpenText*, Finastra*, Atos* 🧡 Xth, XIIth (Computer Science) - Naval Public School, Kochi, India 💛 Bachelor of Engineering (Computer Science)* - SRSIT, Bangalore 💜 Executive Program ( Data Mining and Analytics ) - [IIT, Roorkee] 💚 Executive Certificate Program (Entrepreneurship) - IIM, Kashipur
💙 Proficience (Cryptography & Network Security) - IISc, Bangalore 🤎 Proficience (Innovative Product Design & Dev.) - IISc, Bangalore 🖤 Proficience (Artficial Intelligence/Intelli Agents) - IISc, Bangalore
💎 Sun Certified Java Programmer 1.4 (Core Java) 💎 Sun Certified Java Programmer 5.0 (Core Java) 💎 Sun Certified Business Component Developer 1.3 (EJB/J2EE) 💎 Sun Certified Business Component Developer 5.0 (EJB/J2EE) 💎 Brainbench Spring 2.x Certification*, ( J2EE/Spring ) 💎 Brainbench Hibernate 3.x Certification* (Hibernate) 💎 Brainbench Java EE 6.x Certification*, ( J2EE ) 💎 Quest C Lang. Certification (C Programming) 💎 Quest C++ Certification (C++ Programming) 💎 Quest Data Structures Certification ( C/C++ )
40 | 🏁 Highest IQ (147) ~ Among Entire Secondary School Batch ~ (Xth) 🏁 MVIT Inter-Collegiate C Programming Contest (Finalist, Top 8) 🏁 SJCIT Inter-Collegiate Web Design (Runners-Up) 🏁 Google India Code Jam 2005 (#376/14,000) - India + SE Asia 🏁 Microsoft Bizspark Startup 2011-'12 (Shortlisted/Recognized) 🏁 Societe Generale Brainwaves Hackathon 2015 (Corp Finalist, AI) 🏁 Mphasis Internal Hackathon Challenge, Season-07 (#07/106)* 🏁 Techgig Code Gladiators 2015 (Open, Top 500) 🏁 Accenture in India YouTube Contest 2015 (BigData, Winner) 🏁 Xebia-Microsoft-GitHub Blogathon 2022 (Microservices, Winner)
🏆 Senior Member, ACM (Elevated) and Senior Member, IEEE (Elevated) 🏆 Author/Blogger, Technology Advice (Developer.com and jGuru) 🏆 DZone Most Valuable Blogger and DZone Core (Elevated)** 🏆 Author and Blogger, Friends of Open JDK Community (Foojay.IO) 🏆 Blogger, Java Code Geeks Program (Shortlisted/Recognized) 🏆 Paid Blogger, Developer.com and jGuru; Blogger, HackerNoon; 🎯 19y Across Associate/Engineer (2003) to Java Practice Leader (2024) |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
🔴 ALL COPYRIGHTS FOR THE ABOVE PUBLICLY AVAILABLE IMAGE OR PARTS OF THE IMAGE ARE WITH THEIR RESPECTIVE OWNERS, SOURCED/USED FROM GOOGLE SEARCH
48 |
--------------------------------------------------------------------------------