├── SpringAnno
├── .classpath
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.jdt.core.prefs
│ └── org.eclipse.m2e.core.prefs
├── pom.xml
├── src
│ ├── main
│ │ └── java
│ │ │ └── com
│ │ │ └── telusko
│ │ │ └── SpringAnno
│ │ │ ├── App.java
│ │ │ ├── AppConfig.java
│ │ │ ├── MobileProcessor.java
│ │ │ ├── Samsung.java
│ │ │ └── Snapdragon.java
│ └── test
│ │ └── java
│ │ └── com
│ │ └── telusko
│ │ └── SpringAnno
│ │ └── AppTest.java
└── target
│ ├── classes
│ ├── META-INF
│ │ ├── MANIFEST.MF
│ │ └── maven
│ │ │ └── com.telusko
│ │ │ └── SpringAnno
│ │ │ ├── pom.properties
│ │ │ └── pom.xml
│ └── com
│ │ └── telusko
│ │ └── SpringAnno
│ │ ├── App.class
│ │ ├── AppConfig.class
│ │ ├── MobileProcessor.class
│ │ ├── Samsung.class
│ │ └── Snapdragon.class
│ └── test-classes
│ └── com
│ └── telusko
│ └── SpringAnno
│ └── AppTest.class
├── SpringAnno1
├── .classpath
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.jdt.core.prefs
│ └── org.eclipse.m2e.core.prefs
├── pom.xml
├── src
│ ├── main
│ │ └── java
│ │ │ └── com
│ │ │ └── telusko
│ │ │ └── SpringAnno
│ │ │ ├── App.java
│ │ │ ├── AppConfig.java
│ │ │ ├── MediaTek.java
│ │ │ ├── MobileProcessor.java
│ │ │ ├── Samsung.java
│ │ │ └── Snapdragon.java
│ └── test
│ │ └── java
│ │ └── com
│ │ └── telusko
│ │ └── SpringAnno
│ │ └── AppTest.java
└── target
│ ├── classes
│ ├── META-INF
│ │ ├── MANIFEST.MF
│ │ └── maven
│ │ │ └── com.telusko
│ │ │ └── SpringAnno
│ │ │ ├── pom.properties
│ │ │ └── pom.xml
│ └── com
│ │ └── telusko
│ │ └── SpringAnno
│ │ ├── App.class
│ │ ├── AppConfig.class
│ │ ├── MediaTek.class
│ │ ├── MobileProcessor.class
│ │ ├── Samsung.class
│ │ └── Snapdragon.class
│ └── test-classes
│ └── com
│ └── telusko
│ └── SpringAnno
│ └── AppTest.class
├── Telusko
├── .classpath
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.jdt.core.prefs
│ └── org.eclipse.m2e.core.prefs
├── pom.xml
├── src
│ ├── main
│ │ └── java
│ │ │ └── com
│ │ │ └── navin
│ │ │ └── Telusko
│ │ │ └── App.java
│ └── test
│ │ └── java
│ │ └── com
│ │ └── navin
│ │ └── Telusko
│ │ └── AppTest.java
└── target
│ ├── classes
│ ├── META-INF
│ │ ├── MANIFEST.MF
│ │ └── maven
│ │ │ └── com.navin
│ │ │ └── Telusko
│ │ │ ├── pom.properties
│ │ │ └── pom.xml
│ └── com
│ │ └── navin
│ │ └── Telusko
│ │ └── App.class
│ └── test-classes
│ └── com
│ └── navin
│ └── Telusko
│ └── AppTest.class
├── Telusko1
├── .classpath
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.jdt.core.prefs
│ └── org.eclipse.m2e.core.prefs
├── pom.xml
├── src
│ ├── main
│ │ └── java
│ │ │ └── com
│ │ │ └── navin
│ │ │ └── Telusko
│ │ │ ├── App.java
│ │ │ ├── Bike.java
│ │ │ ├── Car.java
│ │ │ └── Vehicle.java
│ └── test
│ │ └── java
│ │ └── com
│ │ └── navin
│ │ └── Telusko
│ │ └── AppTest.java
└── target
│ ├── classes
│ ├── META-INF
│ │ ├── MANIFEST.MF
│ │ └── maven
│ │ │ └── com.navin
│ │ │ └── Telusko
│ │ │ ├── pom.properties
│ │ │ └── pom.xml
│ └── com
│ │ └── navin
│ │ └── Telusko
│ │ ├── App.class
│ │ ├── Bike.class
│ │ ├── Car.class
│ │ └── Vehicle.class
│ └── test-classes
│ └── com
│ └── navin
│ └── Telusko
│ └── AppTest.class
├── Telusko2
├── .classpath
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.jdt.core.prefs
│ └── org.eclipse.m2e.core.prefs
├── pom.xml
├── src
│ ├── main
│ │ └── java
│ │ │ ├── com
│ │ │ └── navin
│ │ │ │ └── Telusko
│ │ │ │ ├── App.java
│ │ │ │ ├── Bike.java
│ │ │ │ ├── Car.java
│ │ │ │ └── Vehicle.java
│ │ │ └── spring.xml
│ └── test
│ │ └── java
│ │ └── com
│ │ └── navin
│ │ └── Telusko
│ │ └── AppTest.java
└── target
│ ├── classes
│ ├── META-INF
│ │ ├── MANIFEST.MF
│ │ └── maven
│ │ │ └── com.navin
│ │ │ └── Telusko
│ │ │ ├── pom.properties
│ │ │ └── pom.xml
│ ├── com
│ │ └── navin
│ │ │ └── Telusko
│ │ │ ├── App.class
│ │ │ ├── Bike.class
│ │ │ ├── Car.class
│ │ │ └── Vehicle.class
│ └── spring.xml
│ └── test-classes
│ └── com
│ └── navin
│ └── Telusko
│ └── AppTest.class
├── Telusko3
├── .classpath
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.jdt.core.prefs
│ └── org.eclipse.m2e.core.prefs
├── pom.xml
├── src
│ ├── main
│ │ └── java
│ │ │ ├── com
│ │ │ └── navin
│ │ │ │ └── Telusko
│ │ │ │ ├── App.java
│ │ │ │ ├── Bike.java
│ │ │ │ ├── Car.java
│ │ │ │ └── Vehicle.java
│ │ │ └── spring.xml
│ └── test
│ │ └── java
│ │ └── com
│ │ └── navin
│ │ └── Telusko
│ │ └── AppTest.java
└── target
│ ├── classes
│ ├── META-INF
│ │ ├── MANIFEST.MF
│ │ └── maven
│ │ │ └── com.navin
│ │ │ └── Telusko
│ │ │ ├── pom.properties
│ │ │ └── pom.xml
│ ├── com
│ │ └── navin
│ │ │ └── Telusko
│ │ │ ├── App.class
│ │ │ ├── Bike.class
│ │ │ ├── Car.class
│ │ │ └── Vehicle.class
│ └── spring.xml
│ └── test-classes
│ └── com
│ └── navin
│ └── Telusko
│ └── AppTest.class
├── Telusko4
├── .classpath
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.jdt.core.prefs
│ └── org.eclipse.m2e.core.prefs
├── pom.xml
├── src
│ ├── main
│ │ └── java
│ │ │ ├── com
│ │ │ └── navin
│ │ │ │ └── Telusko
│ │ │ │ ├── App.java
│ │ │ │ ├── Bike.java
│ │ │ │ ├── Car.java
│ │ │ │ ├── Tyre.java
│ │ │ │ └── Vehicle.java
│ │ │ └── spring.xml
│ └── test
│ │ └── java
│ │ └── com
│ │ └── navin
│ │ └── Telusko
│ │ └── AppTest.java
└── target
│ ├── classes
│ ├── META-INF
│ │ ├── MANIFEST.MF
│ │ └── maven
│ │ │ └── com.navin
│ │ │ └── Telusko
│ │ │ ├── pom.properties
│ │ │ └── pom.xml
│ ├── com
│ │ └── navin
│ │ │ └── Telusko
│ │ │ ├── App.class
│ │ │ ├── Bike.class
│ │ │ ├── Car.class
│ │ │ ├── Tyre.class
│ │ │ └── Vehicle.class
│ └── spring.xml
│ └── test-classes
│ └── com
│ └── navin
│ └── Telusko
│ └── AppTest.class
├── Telusko5
├── .classpath
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.jdt.core.prefs
│ └── org.eclipse.m2e.core.prefs
├── pom.xml
├── src
│ ├── main
│ │ └── java
│ │ │ ├── com
│ │ │ └── navin
│ │ │ │ └── Telusko
│ │ │ │ ├── App.java
│ │ │ │ ├── Bike.java
│ │ │ │ ├── Car.java
│ │ │ │ ├── Tyre.java
│ │ │ │ └── Vehicle.java
│ │ │ └── spring.xml
│ └── test
│ │ └── java
│ │ └── com
│ │ └── navin
│ │ └── Telusko
│ │ └── AppTest.java
└── target
│ ├── classes
│ ├── META-INF
│ │ ├── MANIFEST.MF
│ │ └── maven
│ │ │ └── com.navin
│ │ │ └── Telusko
│ │ │ ├── pom.properties
│ │ │ └── pom.xml
│ ├── com
│ │ └── navin
│ │ │ └── Telusko
│ │ │ ├── App.class
│ │ │ ├── Bike.class
│ │ │ ├── Car.class
│ │ │ ├── Tyre.class
│ │ │ └── Vehicle.class
│ └── spring.xml
│ └── test-classes
│ └── com
│ └── navin
│ └── Telusko
│ └── AppTest.class
└── Telusko6
├── .classpath
├── .project
├── .settings
├── org.eclipse.core.resources.prefs
├── org.eclipse.jdt.core.prefs
└── org.eclipse.m2e.core.prefs
├── pom.xml
├── src
├── main
│ └── java
│ │ ├── com
│ │ └── navin
│ │ │ └── Telusko
│ │ │ ├── App.java
│ │ │ ├── Bike.java
│ │ │ ├── Car.java
│ │ │ ├── Tyre.java
│ │ │ └── Vehicle.java
│ │ └── spring.xml
└── test
│ └── java
│ └── com
│ └── navin
│ └── Telusko
│ └── AppTest.java
└── target
├── classes
├── META-INF
│ ├── MANIFEST.MF
│ └── maven
│ │ └── com.navin
│ │ └── Telusko
│ │ ├── pom.properties
│ │ └── pom.xml
├── com
│ └── navin
│ │ └── Telusko
│ │ ├── App.class
│ │ ├── Bike.class
│ │ ├── Car.class
│ │ ├── Tyre.class
│ │ └── Vehicle.class
└── spring.xml
└── test-classes
└── com
└── navin
└── Telusko
└── AppTest.class
/SpringAnno/.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 |
27 |
28 |
--------------------------------------------------------------------------------
/SpringAnno/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | SpringAnno
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.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/SpringAnno/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/test/java=UTF-8
4 | encoding/=UTF-8
5 |
--------------------------------------------------------------------------------
/SpringAnno/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
3 | org.eclipse.jdt.core.compiler.compliance=1.5
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.release=disabled
6 | org.eclipse.jdt.core.compiler.source=1.5
7 |
--------------------------------------------------------------------------------
/SpringAnno/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/SpringAnno/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.telusko
6 | SpringAnno
7 | 0.0.1-SNAPSHOT
8 | jar
9 |
10 | SpringAnno
11 | http://maven.apache.org
12 |
13 |
14 | UTF-8
15 |
16 |
17 |
18 |
19 | junit
20 | junit
21 | 3.8.1
22 | test
23 |
24 |
25 |
26 |
27 | org.springframework
28 | spring-context
29 | 4.1.9.RELEASE
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/SpringAnno/src/main/java/com/telusko/SpringAnno/App.java:
--------------------------------------------------------------------------------
1 | package com.telusko.SpringAnno;
2 |
3 | import org.springframework.context.ApplicationContext;
4 | import org.springframework.context.annotation.AnnotationConfigApplicationContext;
5 |
6 | /**
7 | * Hello world!
8 | *
9 | */
10 | public class App
11 | {
12 | public static void main( String[] args )
13 | {
14 | ApplicationContext factory = new AnnotationConfigApplicationContext(AppConfig.class);
15 |
16 | Samsung s7 = factory.getBean(Samsung.class);
17 | s7.config();
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/SpringAnno/src/main/java/com/telusko/SpringAnno/AppConfig.java:
--------------------------------------------------------------------------------
1 | package com.telusko.SpringAnno;
2 |
3 | import org.springframework.context.annotation.Bean;
4 | import org.springframework.context.annotation.Configuration;
5 |
6 | @Configuration
7 | public class AppConfig
8 | {
9 | @Bean
10 | public Samsung getPhone()
11 | {
12 | return new Samsung();
13 | }
14 |
15 | @Bean
16 | public MobileProcessor getProcessor()
17 | {
18 | return new Snapdragon();
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/SpringAnno/src/main/java/com/telusko/SpringAnno/MobileProcessor.java:
--------------------------------------------------------------------------------
1 | package com.telusko.SpringAnno;
2 |
3 | public interface MobileProcessor
4 | {
5 | void process();
6 | }
7 |
--------------------------------------------------------------------------------
/SpringAnno/src/main/java/com/telusko/SpringAnno/Samsung.java:
--------------------------------------------------------------------------------
1 | package com.telusko.SpringAnno;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 |
5 | public class Samsung
6 | {
7 | @Autowired
8 | MobileProcessor cpu;
9 |
10 | public MobileProcessor getCpu() {
11 | return cpu;
12 | }
13 |
14 | public void setCpu(MobileProcessor cpu) {
15 | this.cpu = cpu;
16 | }
17 |
18 | public void config()
19 | {
20 | System.out.println("Octa Core,4 gb Ram, 12MP camera");
21 | cpu.process();
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/SpringAnno/src/main/java/com/telusko/SpringAnno/Snapdragon.java:
--------------------------------------------------------------------------------
1 | package com.telusko.SpringAnno;
2 |
3 | public class Snapdragon implements MobileProcessor {
4 |
5 | public void process() {
6 | System.out.println("World Best CPU");
7 |
8 | }
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/SpringAnno/src/test/java/com/telusko/SpringAnno/AppTest.java:
--------------------------------------------------------------------------------
1 | package com.telusko.SpringAnno;
2 |
3 | import junit.framework.Test;
4 | import junit.framework.TestCase;
5 | import junit.framework.TestSuite;
6 |
7 | /**
8 | * Unit test for simple App.
9 | */
10 | public class AppTest
11 | extends TestCase
12 | {
13 | /**
14 | * Create the test case
15 | *
16 | * @param testName name of the test case
17 | */
18 | public AppTest( String testName )
19 | {
20 | super( testName );
21 | }
22 |
23 | /**
24 | * @return the suite of tests being tested
25 | */
26 | public static Test suite()
27 | {
28 | return new TestSuite( AppTest.class );
29 | }
30 |
31 | /**
32 | * Rigourous Test :-)
33 | */
34 | public void testApp()
35 | {
36 | assertTrue( true );
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/SpringAnno/target/classes/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Built-By: Telusko
3 | Build-Jdk: 12.0.2
4 | Created-By: Maven Integration for Eclipse
5 |
6 |
--------------------------------------------------------------------------------
/SpringAnno/target/classes/META-INF/maven/com.telusko/SpringAnno/pom.properties:
--------------------------------------------------------------------------------
1 | #Generated by Maven Integration for Eclipse
2 | #Wed Aug 28 17:06:13 IST 2019
3 | m2e.projectLocation=C\:\\Users\\Telusko\\git\\SpringFramework\\SpringAnno
4 | m2e.projectName=SpringAnno
5 | groupId=com.telusko
6 | artifactId=SpringAnno
7 | version=0.0.1-SNAPSHOT
8 |
--------------------------------------------------------------------------------
/SpringAnno/target/classes/META-INF/maven/com.telusko/SpringAnno/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.telusko
6 | SpringAnno
7 | 0.0.1-SNAPSHOT
8 | jar
9 |
10 | SpringAnno
11 | http://maven.apache.org
12 |
13 |
14 | UTF-8
15 |
16 |
17 |
18 |
19 | junit
20 | junit
21 | 3.8.1
22 | test
23 |
24 |
25 |
26 |
27 | org.springframework
28 | spring-context
29 | 4.1.9.RELEASE
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/SpringAnno/target/classes/com/telusko/SpringAnno/App.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/SpringAnno/target/classes/com/telusko/SpringAnno/App.class
--------------------------------------------------------------------------------
/SpringAnno/target/classes/com/telusko/SpringAnno/AppConfig.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/SpringAnno/target/classes/com/telusko/SpringAnno/AppConfig.class
--------------------------------------------------------------------------------
/SpringAnno/target/classes/com/telusko/SpringAnno/MobileProcessor.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/SpringAnno/target/classes/com/telusko/SpringAnno/MobileProcessor.class
--------------------------------------------------------------------------------
/SpringAnno/target/classes/com/telusko/SpringAnno/Samsung.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/SpringAnno/target/classes/com/telusko/SpringAnno/Samsung.class
--------------------------------------------------------------------------------
/SpringAnno/target/classes/com/telusko/SpringAnno/Snapdragon.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/SpringAnno/target/classes/com/telusko/SpringAnno/Snapdragon.class
--------------------------------------------------------------------------------
/SpringAnno/target/test-classes/com/telusko/SpringAnno/AppTest.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/SpringAnno/target/test-classes/com/telusko/SpringAnno/AppTest.class
--------------------------------------------------------------------------------
/SpringAnno1/.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 |
27 |
28 |
--------------------------------------------------------------------------------
/SpringAnno1/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | SpringAnno1
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.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/SpringAnno1/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/test/java=UTF-8
4 | encoding/=UTF-8
5 |
--------------------------------------------------------------------------------
/SpringAnno1/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
3 | org.eclipse.jdt.core.compiler.compliance=1.5
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.release=disabled
6 | org.eclipse.jdt.core.compiler.source=1.5
7 |
--------------------------------------------------------------------------------
/SpringAnno1/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/SpringAnno1/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.telusko
6 | SpringAnno
7 | 0.0.1-SNAPSHOT
8 | jar
9 |
10 | SpringAnno
11 | http://maven.apache.org
12 |
13 |
14 | UTF-8
15 |
16 |
17 |
18 |
19 | junit
20 | junit
21 | 3.8.1
22 | test
23 |
24 |
25 |
26 |
27 | org.springframework
28 | spring-context
29 | 4.1.9.RELEASE
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/SpringAnno1/src/main/java/com/telusko/SpringAnno/App.java:
--------------------------------------------------------------------------------
1 | package com.telusko.SpringAnno;
2 |
3 | import org.springframework.context.ApplicationContext;
4 | import org.springframework.context.annotation.AnnotationConfigApplicationContext;
5 |
6 | /**
7 | * Hello world!
8 | *
9 | */
10 |
11 | //Spring Core Annotation
12 |
13 | public class App
14 | {
15 | public static void main( String[] args )
16 | {
17 | ApplicationContext factory = new AnnotationConfigApplicationContext(AppConfig.class);
18 |
19 | Samsung s7 = factory.getBean(Samsung.class);
20 | s7.config();
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/SpringAnno1/src/main/java/com/telusko/SpringAnno/AppConfig.java:
--------------------------------------------------------------------------------
1 | package com.telusko.SpringAnno;
2 |
3 | import org.springframework.context.annotation.Bean;
4 | import org.springframework.context.annotation.ComponentScan;
5 | import org.springframework.context.annotation.Configuration;
6 |
7 | @Configuration
8 | @ComponentScan(basePackages="com.telusko.SpringAnno")
9 | public class AppConfig
10 | {
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/SpringAnno1/src/main/java/com/telusko/SpringAnno/MediaTek.java:
--------------------------------------------------------------------------------
1 | package com.telusko.SpringAnno;
2 |
3 | import org.springframework.context.annotation.Primary;
4 | import org.springframework.stereotype.Component;
5 |
6 | @Component
7 |
8 | public class MediaTek implements MobileProcessor
9 | {
10 |
11 | public void process()
12 | {
13 | System.out.println("2nd Best CPU");
14 |
15 | }
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/SpringAnno1/src/main/java/com/telusko/SpringAnno/MobileProcessor.java:
--------------------------------------------------------------------------------
1 | package com.telusko.SpringAnno;
2 |
3 | public interface MobileProcessor
4 | {
5 | void process();
6 | }
7 |
--------------------------------------------------------------------------------
/SpringAnno1/src/main/java/com/telusko/SpringAnno/Samsung.java:
--------------------------------------------------------------------------------
1 | package com.telusko.SpringAnno;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 | import org.springframework.beans.factory.annotation.Qualifier;
5 | import org.springframework.stereotype.Component;
6 |
7 | @Component
8 | public class Samsung
9 | {
10 | @Autowired
11 | @Qualifier("snapdragon")
12 | MobileProcessor cpu;
13 |
14 | public MobileProcessor getCpu() {
15 | return cpu;
16 | }
17 |
18 | public void setCpu(MobileProcessor cpu) {
19 | this.cpu = cpu;
20 | }
21 |
22 | public void config()
23 | {
24 | System.out.println("Octa Core,4 gb Ram, 12MP camera");
25 | cpu.process();
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/SpringAnno1/src/main/java/com/telusko/SpringAnno/Snapdragon.java:
--------------------------------------------------------------------------------
1 | package com.telusko.SpringAnno;
2 |
3 | import org.springframework.context.annotation.Primary;
4 | import org.springframework.stereotype.Component;
5 |
6 | @Component
7 |
8 | public class Snapdragon implements MobileProcessor {
9 |
10 | public void process() {
11 | System.out.println("World Best CPU");
12 |
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/SpringAnno1/src/test/java/com/telusko/SpringAnno/AppTest.java:
--------------------------------------------------------------------------------
1 | package com.telusko.SpringAnno;
2 |
3 | import junit.framework.Test;
4 | import junit.framework.TestCase;
5 | import junit.framework.TestSuite;
6 |
7 | /**
8 | * Unit test for simple App.
9 | */
10 | public class AppTest
11 | extends TestCase
12 | {
13 | /**
14 | * Create the test case
15 | *
16 | * @param testName name of the test case
17 | */
18 | public AppTest( String testName )
19 | {
20 | super( testName );
21 | }
22 |
23 | /**
24 | * @return the suite of tests being tested
25 | */
26 | public static Test suite()
27 | {
28 | return new TestSuite( AppTest.class );
29 | }
30 |
31 | /**
32 | * Rigourous Test :-)
33 | */
34 | public void testApp()
35 | {
36 | assertTrue( true );
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/SpringAnno1/target/classes/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Built-By: Telusko
3 | Build-Jdk: 12.0.2
4 | Created-By: Maven Integration for Eclipse
5 |
6 |
--------------------------------------------------------------------------------
/SpringAnno1/target/classes/META-INF/maven/com.telusko/SpringAnno/pom.properties:
--------------------------------------------------------------------------------
1 | #Generated by Maven Integration for Eclipse
2 | #Wed Aug 28 17:08:46 IST 2019
3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Youtube_Spring_Framework\\Spring Core Annotation Component AutoWired Primary Qualifier_11\\SpringAnno
4 | m2e.projectName=SpringAnno1
5 | groupId=com.telusko
6 | artifactId=SpringAnno
7 | version=0.0.1-SNAPSHOT
8 |
--------------------------------------------------------------------------------
/SpringAnno1/target/classes/META-INF/maven/com.telusko/SpringAnno/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.telusko
6 | SpringAnno
7 | 0.0.1-SNAPSHOT
8 | jar
9 |
10 | SpringAnno
11 | http://maven.apache.org
12 |
13 |
14 | UTF-8
15 |
16 |
17 |
18 |
19 | junit
20 | junit
21 | 3.8.1
22 | test
23 |
24 |
25 |
26 |
27 | org.springframework
28 | spring-context
29 | 4.1.9.RELEASE
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/SpringAnno1/target/classes/com/telusko/SpringAnno/App.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/SpringAnno1/target/classes/com/telusko/SpringAnno/App.class
--------------------------------------------------------------------------------
/SpringAnno1/target/classes/com/telusko/SpringAnno/AppConfig.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/SpringAnno1/target/classes/com/telusko/SpringAnno/AppConfig.class
--------------------------------------------------------------------------------
/SpringAnno1/target/classes/com/telusko/SpringAnno/MediaTek.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/SpringAnno1/target/classes/com/telusko/SpringAnno/MediaTek.class
--------------------------------------------------------------------------------
/SpringAnno1/target/classes/com/telusko/SpringAnno/MobileProcessor.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/SpringAnno1/target/classes/com/telusko/SpringAnno/MobileProcessor.class
--------------------------------------------------------------------------------
/SpringAnno1/target/classes/com/telusko/SpringAnno/Samsung.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/SpringAnno1/target/classes/com/telusko/SpringAnno/Samsung.class
--------------------------------------------------------------------------------
/SpringAnno1/target/classes/com/telusko/SpringAnno/Snapdragon.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/SpringAnno1/target/classes/com/telusko/SpringAnno/Snapdragon.class
--------------------------------------------------------------------------------
/SpringAnno1/target/test-classes/com/telusko/SpringAnno/AppTest.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/SpringAnno1/target/test-classes/com/telusko/SpringAnno/AppTest.class
--------------------------------------------------------------------------------
/Telusko/.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 |
27 |
28 |
--------------------------------------------------------------------------------
/Telusko/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | Telusko
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.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Telusko/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/test/java=UTF-8
4 | encoding/=UTF-8
5 |
--------------------------------------------------------------------------------
/Telusko/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
3 | org.eclipse.jdt.core.compiler.compliance=1.5
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.release=disabled
6 | org.eclipse.jdt.core.compiler.source=1.5
7 |
--------------------------------------------------------------------------------
/Telusko/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/Telusko/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.navin
6 | Telusko
7 | 0.0.1-SNAPSHOT
8 | jar
9 |
10 | Telusko
11 | http://maven.apache.org
12 |
13 |
14 | UTF-8
15 |
16 |
17 |
18 |
19 | junit
20 | junit
21 | 3.8.1
22 | test
23 |
24 |
25 |
26 |
27 | org.springframework
28 | spring-context
29 | 5.1.9.RELEASE
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Telusko/src/main/java/com/navin/Telusko/App.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import org.springframework.context.ApplicationContext;
4 | import org.springframework.context.support.ClassPathXmlApplicationContext;
5 |
6 | /**
7 | * Hello world!
8 | *
9 | */
10 | public class App
11 | {
12 | public static void main( String[] args )
13 | {
14 | System.out.println("Hello World");
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Telusko/src/test/java/com/navin/Telusko/AppTest.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import junit.framework.Test;
4 | import junit.framework.TestCase;
5 | import junit.framework.TestSuite;
6 |
7 | /**
8 | * Unit test for simple App.
9 | */
10 | public class AppTest
11 | extends TestCase
12 | {
13 | /**
14 | * Create the test case
15 | *
16 | * @param testName name of the test case
17 | */
18 | public AppTest( String testName )
19 | {
20 | super( testName );
21 | }
22 |
23 | /**
24 | * @return the suite of tests being tested
25 | */
26 | public static Test suite()
27 | {
28 | return new TestSuite( AppTest.class );
29 | }
30 |
31 | /**
32 | * Rigourous Test :-)
33 | */
34 | public void testApp()
35 | {
36 | assertTrue( true );
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Telusko/target/classes/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Built-By: Telusko
3 | Build-Jdk: 12.0.2
4 | Created-By: Maven Integration for Eclipse
5 |
6 |
--------------------------------------------------------------------------------
/Telusko/target/classes/META-INF/maven/com.navin/Telusko/pom.properties:
--------------------------------------------------------------------------------
1 | #Generated by Maven Integration for Eclipse
2 | #Wed Aug 28 16:43:33 IST 2019
3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Youtube_Spring_Framework\\Maven Tutorial Practical_3\\Telusko
4 | m2e.projectName=Telusko
5 | groupId=com.navin
6 | artifactId=Telusko
7 | version=0.0.1-SNAPSHOT
8 |
--------------------------------------------------------------------------------
/Telusko/target/classes/META-INF/maven/com.navin/Telusko/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.navin
6 | Telusko
7 | 0.0.1-SNAPSHOT
8 | jar
9 |
10 | Telusko
11 | http://maven.apache.org
12 |
13 |
14 | UTF-8
15 |
16 |
17 |
18 |
19 | junit
20 | junit
21 | 3.8.1
22 | test
23 |
24 |
25 |
26 |
27 | org.springframework
28 | spring-context
29 | 5.1.9.RELEASE
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Telusko/target/classes/com/navin/Telusko/App.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko/target/classes/com/navin/Telusko/App.class
--------------------------------------------------------------------------------
/Telusko/target/test-classes/com/navin/Telusko/AppTest.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko/target/test-classes/com/navin/Telusko/AppTest.class
--------------------------------------------------------------------------------
/Telusko1/.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 |
27 |
28 |
--------------------------------------------------------------------------------
/Telusko1/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | Telusko1
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.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Telusko1/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/test/java=UTF-8
4 | encoding/=UTF-8
5 |
--------------------------------------------------------------------------------
/Telusko1/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
3 | org.eclipse.jdt.core.compiler.compliance=1.5
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.release=disabled
6 | org.eclipse.jdt.core.compiler.source=1.5
7 |
--------------------------------------------------------------------------------
/Telusko1/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/Telusko1/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.navin
6 | Telusko
7 | 0.0.1-SNAPSHOT
8 | jar
9 |
10 | Telusko
11 | http://maven.apache.org
12 |
13 |
14 | UTF-8
15 |
16 |
17 |
18 |
19 | junit
20 | junit
21 | 3.8.1
22 | test
23 |
24 |
25 |
26 |
27 | org.springframework
28 | spring-context
29 | 5.1.9.RELEASE
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Telusko1/src/main/java/com/navin/Telusko/App.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import org.springframework.context.ApplicationContext;
4 | import org.springframework.context.support.ClassPathXmlApplicationContext;
5 |
6 | /**
7 | * Hello world!
8 | *
9 | */
10 | public class App
11 | {
12 | public static void main( String[] args )
13 | {
14 | ApplicationContext context = new ClassPathXmlApplicationContext();
15 |
16 |
17 | Vehicle obj = (Vehicle)context.getBean("vehicle");
18 | obj.drive();
19 | }
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/Telusko1/src/main/java/com/navin/Telusko/Bike.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | public class Bike implements Vehicle
4 | {
5 | public void drive()
6 | {
7 | System.out.println("Bhaag raha hai");
8 | }
9 | }
--------------------------------------------------------------------------------
/Telusko1/src/main/java/com/navin/Telusko/Car.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | public class Car implements Vehicle
4 | {
5 | public void drive()
6 | {
7 | System.out.println("Chal raha hai..");
8 | }
9 | }
--------------------------------------------------------------------------------
/Telusko1/src/main/java/com/navin/Telusko/Vehicle.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | public interface Vehicle
4 | {
5 |
6 | void drive();
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/Telusko1/src/test/java/com/navin/Telusko/AppTest.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import junit.framework.Test;
4 | import junit.framework.TestCase;
5 | import junit.framework.TestSuite;
6 |
7 | /**
8 | * Unit test for simple App.
9 | */
10 | public class AppTest
11 | extends TestCase
12 | {
13 | /**
14 | * Create the test case
15 | *
16 | * @param testName name of the test case
17 | */
18 | public AppTest( String testName )
19 | {
20 | super( testName );
21 | }
22 |
23 | /**
24 | * @return the suite of tests being tested
25 | */
26 | public static Test suite()
27 | {
28 | return new TestSuite( AppTest.class );
29 | }
30 |
31 | /**
32 | * Rigourous Test :-)
33 | */
34 | public void testApp()
35 | {
36 | assertTrue( true );
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Telusko1/target/classes/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Built-By: Telusko
3 | Build-Jdk: 12.0.2
4 | Created-By: Maven Integration for Eclipse
5 |
6 |
--------------------------------------------------------------------------------
/Telusko1/target/classes/META-INF/maven/com.navin/Telusko/pom.properties:
--------------------------------------------------------------------------------
1 | #Generated by Maven Integration for Eclipse
2 | #Wed Aug 28 16:50:42 IST 2019
3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Youtube_Spring_Framework\\ApplicationContext_4\\Telusko
4 | m2e.projectName=Telusko1
5 | groupId=com.navin
6 | artifactId=Telusko
7 | version=0.0.1-SNAPSHOT
8 |
--------------------------------------------------------------------------------
/Telusko1/target/classes/META-INF/maven/com.navin/Telusko/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.navin
6 | Telusko
7 | 0.0.1-SNAPSHOT
8 | jar
9 |
10 | Telusko
11 | http://maven.apache.org
12 |
13 |
14 | UTF-8
15 |
16 |
17 |
18 |
19 | junit
20 | junit
21 | 3.8.1
22 | test
23 |
24 |
25 |
26 |
27 | org.springframework
28 | spring-context
29 | 5.1.9.RELEASE
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Telusko1/target/classes/com/navin/Telusko/App.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko1/target/classes/com/navin/Telusko/App.class
--------------------------------------------------------------------------------
/Telusko1/target/classes/com/navin/Telusko/Bike.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko1/target/classes/com/navin/Telusko/Bike.class
--------------------------------------------------------------------------------
/Telusko1/target/classes/com/navin/Telusko/Car.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko1/target/classes/com/navin/Telusko/Car.class
--------------------------------------------------------------------------------
/Telusko1/target/classes/com/navin/Telusko/Vehicle.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko1/target/classes/com/navin/Telusko/Vehicle.class
--------------------------------------------------------------------------------
/Telusko1/target/test-classes/com/navin/Telusko/AppTest.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko1/target/test-classes/com/navin/Telusko/AppTest.class
--------------------------------------------------------------------------------
/Telusko2/.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 |
27 |
28 |
--------------------------------------------------------------------------------
/Telusko2/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | Telusko2
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.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Telusko2/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/test/java=UTF-8
4 | encoding/=UTF-8
5 |
--------------------------------------------------------------------------------
/Telusko2/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
3 | org.eclipse.jdt.core.compiler.compliance=1.5
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.release=disabled
6 | org.eclipse.jdt.core.compiler.source=1.5
7 |
--------------------------------------------------------------------------------
/Telusko2/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/Telusko2/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.navin
6 | Telusko
7 | 0.0.1-SNAPSHOT
8 | jar
9 |
10 | Telusko
11 | http://maven.apache.org
12 |
13 |
14 | UTF-8
15 |
16 |
17 |
18 |
19 | junit
20 | junit
21 | 3.8.1
22 | test
23 |
24 |
25 |
26 |
27 | org.springframework
28 | spring-context
29 | 5.1.9.RELEASE
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Telusko2/src/main/java/com/navin/Telusko/App.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import org.springframework.context.ApplicationContext;
4 | import org.springframework.context.support.ClassPathXmlApplicationContext;
5 |
6 | /**
7 | * Hello world!
8 | *
9 | */
10 | public class App
11 | {
12 | public static void main( String[] args )
13 | {
14 | ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
15 |
16 |
17 | Vehicle obj = (Vehicle)context.getBean("vehicle");
18 | obj.drive();
19 | }
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/Telusko2/src/main/java/com/navin/Telusko/Bike.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | public class Bike implements Vehicle
4 | {
5 | public void drive()
6 | {
7 | System.out.println("Bhaag raha hai");
8 | }
9 | }
--------------------------------------------------------------------------------
/Telusko2/src/main/java/com/navin/Telusko/Car.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | public class Car implements Vehicle
4 | {
5 | public void drive()
6 | {
7 | System.out.println("Chal raha hai..");
8 | }
9 | }
--------------------------------------------------------------------------------
/Telusko2/src/main/java/com/navin/Telusko/Vehicle.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | public interface Vehicle
4 | {
5 |
6 | void drive();
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/Telusko2/src/main/java/spring.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Telusko2/src/test/java/com/navin/Telusko/AppTest.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import junit.framework.Test;
4 | import junit.framework.TestCase;
5 | import junit.framework.TestSuite;
6 |
7 | /**
8 | * Unit test for simple App.
9 | */
10 | public class AppTest
11 | extends TestCase
12 | {
13 | /**
14 | * Create the test case
15 | *
16 | * @param testName name of the test case
17 | */
18 | public AppTest( String testName )
19 | {
20 | super( testName );
21 | }
22 |
23 | /**
24 | * @return the suite of tests being tested
25 | */
26 | public static Test suite()
27 | {
28 | return new TestSuite( AppTest.class );
29 | }
30 |
31 | /**
32 | * Rigourous Test :-)
33 | */
34 | public void testApp()
35 | {
36 | assertTrue( true );
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Telusko2/target/classes/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Built-By: Telusko
3 | Build-Jdk: 12.0.2
4 | Created-By: Maven Integration for Eclipse
5 |
6 |
--------------------------------------------------------------------------------
/Telusko2/target/classes/META-INF/maven/com.navin/Telusko/pom.properties:
--------------------------------------------------------------------------------
1 | #Generated by Maven Integration for Eclipse
2 | #Wed Aug 28 16:53:09 IST 2019
3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Youtube_Spring_Framework\\Spring Framework Tutorial 5_5\\Telusko
4 | m2e.projectName=Telusko2
5 | groupId=com.navin
6 | artifactId=Telusko
7 | version=0.0.1-SNAPSHOT
8 |
--------------------------------------------------------------------------------
/Telusko2/target/classes/META-INF/maven/com.navin/Telusko/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.navin
6 | Telusko
7 | 0.0.1-SNAPSHOT
8 | jar
9 |
10 | Telusko
11 | http://maven.apache.org
12 |
13 |
14 | UTF-8
15 |
16 |
17 |
18 |
19 | junit
20 | junit
21 | 3.8.1
22 | test
23 |
24 |
25 |
26 |
27 | org.springframework
28 | spring-context
29 | 5.1.9.RELEASE
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Telusko2/target/classes/com/navin/Telusko/App.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko2/target/classes/com/navin/Telusko/App.class
--------------------------------------------------------------------------------
/Telusko2/target/classes/com/navin/Telusko/Bike.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko2/target/classes/com/navin/Telusko/Bike.class
--------------------------------------------------------------------------------
/Telusko2/target/classes/com/navin/Telusko/Car.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko2/target/classes/com/navin/Telusko/Car.class
--------------------------------------------------------------------------------
/Telusko2/target/classes/com/navin/Telusko/Vehicle.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko2/target/classes/com/navin/Telusko/Vehicle.class
--------------------------------------------------------------------------------
/Telusko2/target/classes/spring.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Telusko2/target/test-classes/com/navin/Telusko/AppTest.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko2/target/test-classes/com/navin/Telusko/AppTest.class
--------------------------------------------------------------------------------
/Telusko3/.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 |
27 |
28 |
--------------------------------------------------------------------------------
/Telusko3/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | Telusko3
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.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Telusko3/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/test/java=UTF-8
4 | encoding/=UTF-8
5 |
--------------------------------------------------------------------------------
/Telusko3/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
3 | org.eclipse.jdt.core.compiler.compliance=1.5
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.release=disabled
6 | org.eclipse.jdt.core.compiler.source=1.5
7 |
--------------------------------------------------------------------------------
/Telusko3/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/Telusko3/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.navin
6 | Telusko
7 | 0.0.1-SNAPSHOT
8 | jar
9 |
10 | Telusko
11 | http://maven.apache.org
12 |
13 |
14 | UTF-8
15 |
16 |
17 |
18 |
19 | junit
20 | junit
21 | 3.8.1
22 | test
23 |
24 |
25 |
26 |
27 | org.springframework
28 | spring-context
29 | 5.1.9.RELEASE
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Telusko3/src/main/java/com/navin/Telusko/App.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import org.springframework.context.ApplicationContext;
4 | import org.springframework.context.support.ClassPathXmlApplicationContext;
5 |
6 | /**
7 | * Hello world!
8 | *
9 | */
10 | public class App
11 | {
12 | public static void main( String[] args )
13 | {
14 | ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
15 |
16 |
17 | Vehicle obj = (Vehicle)context.getBean("bike");
18 | obj.drive();
19 | }
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/Telusko3/src/main/java/com/navin/Telusko/Bike.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import org.springframework.stereotype.Component;
4 |
5 | @Component
6 | public class Bike implements Vehicle
7 | {
8 | public void drive()
9 | {
10 | System.out.println("Bhaag raha hai");
11 | }
12 | }
--------------------------------------------------------------------------------
/Telusko3/src/main/java/com/navin/Telusko/Car.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import org.springframework.stereotype.Component;
4 |
5 | @Component
6 | public class Car implements Vehicle
7 | {
8 | public void drive()
9 | {
10 | System.out.println("Chal raha hai..");
11 | }
12 | }
--------------------------------------------------------------------------------
/Telusko3/src/main/java/com/navin/Telusko/Vehicle.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | public interface Vehicle
4 | {
5 |
6 | void drive();
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/Telusko3/src/main/java/spring.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Telusko3/src/test/java/com/navin/Telusko/AppTest.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import junit.framework.Test;
4 | import junit.framework.TestCase;
5 | import junit.framework.TestSuite;
6 |
7 | /**
8 | * Unit test for simple App.
9 | */
10 | public class AppTest
11 | extends TestCase
12 | {
13 | /**
14 | * Create the test case
15 | *
16 | * @param testName name of the test case
17 | */
18 | public AppTest( String testName )
19 | {
20 | super( testName );
21 | }
22 |
23 | /**
24 | * @return the suite of tests being tested
25 | */
26 | public static Test suite()
27 | {
28 | return new TestSuite( AppTest.class );
29 | }
30 |
31 | /**
32 | * Rigourous Test :-)
33 | */
34 | public void testApp()
35 | {
36 | assertTrue( true );
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Telusko3/target/classes/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Built-By: Telusko
3 | Build-Jdk: 12.0.2
4 | Created-By: Maven Integration for Eclipse
5 |
6 |
--------------------------------------------------------------------------------
/Telusko3/target/classes/META-INF/maven/com.navin/Telusko/pom.properties:
--------------------------------------------------------------------------------
1 | #Generated by Maven Integration for Eclipse
2 | #Wed Aug 28 16:55:09 IST 2019
3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Youtube_Spring_Framework\\Annotation Based Configuration_6\\Telusko
4 | m2e.projectName=Telusko3
5 | groupId=com.navin
6 | artifactId=Telusko
7 | version=0.0.1-SNAPSHOT
8 |
--------------------------------------------------------------------------------
/Telusko3/target/classes/META-INF/maven/com.navin/Telusko/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.navin
6 | Telusko
7 | 0.0.1-SNAPSHOT
8 | jar
9 |
10 | Telusko
11 | http://maven.apache.org
12 |
13 |
14 | UTF-8
15 |
16 |
17 |
18 |
19 | junit
20 | junit
21 | 3.8.1
22 | test
23 |
24 |
25 |
26 |
27 | org.springframework
28 | spring-context
29 | 5.1.9.RELEASE
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Telusko3/target/classes/com/navin/Telusko/App.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko3/target/classes/com/navin/Telusko/App.class
--------------------------------------------------------------------------------
/Telusko3/target/classes/com/navin/Telusko/Bike.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko3/target/classes/com/navin/Telusko/Bike.class
--------------------------------------------------------------------------------
/Telusko3/target/classes/com/navin/Telusko/Car.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko3/target/classes/com/navin/Telusko/Car.class
--------------------------------------------------------------------------------
/Telusko3/target/classes/com/navin/Telusko/Vehicle.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko3/target/classes/com/navin/Telusko/Vehicle.class
--------------------------------------------------------------------------------
/Telusko3/target/classes/spring.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Telusko3/target/test-classes/com/navin/Telusko/AppTest.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko3/target/test-classes/com/navin/Telusko/AppTest.class
--------------------------------------------------------------------------------
/Telusko4/.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 |
27 |
28 |
--------------------------------------------------------------------------------
/Telusko4/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | Telusko4
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.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Telusko4/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/test/java=UTF-8
4 | encoding/=UTF-8
5 |
--------------------------------------------------------------------------------
/Telusko4/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
3 | org.eclipse.jdt.core.compiler.compliance=1.5
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.release=disabled
6 | org.eclipse.jdt.core.compiler.source=1.5
7 |
--------------------------------------------------------------------------------
/Telusko4/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/Telusko4/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.navin
6 | Telusko
7 | 0.0.1-SNAPSHOT
8 | jar
9 |
10 | Telusko
11 | http://maven.apache.org
12 |
13 |
14 | UTF-8
15 |
16 |
17 |
18 |
19 | junit
20 | junit
21 | 3.8.1
22 | test
23 |
24 |
25 |
26 |
27 | org.springframework
28 | spring-context
29 | 5.1.9.RELEASE
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Telusko4/src/main/java/com/navin/Telusko/App.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import org.springframework.context.ApplicationContext;
4 | import org.springframework.context.support.ClassPathXmlApplicationContext;
5 |
6 | /**
7 | * Hello world!
8 | *
9 | */
10 | public class App
11 | {
12 | public static void main( String[] args )
13 | {
14 | ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
15 |
16 |
17 | // Vehicle obj = (Vehicle)context.getBean("bike");
18 | // obj.drive();
19 |
20 | Tyre t = (Tyre) context.getBean("tyre");
21 | System.out.println(t);
22 | }
23 | }
24 |
25 |
--------------------------------------------------------------------------------
/Telusko4/src/main/java/com/navin/Telusko/Bike.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import org.springframework.stereotype.Component;
4 |
5 | @Component
6 | public class Bike implements Vehicle
7 | {
8 | public void drive()
9 | {
10 | System.out.println("Bike...");
11 | }
12 | }
--------------------------------------------------------------------------------
/Telusko4/src/main/java/com/navin/Telusko/Car.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import org.springframework.stereotype.Component;
4 |
5 | @Component
6 | public class Car implements Vehicle
7 | {
8 | public void drive()
9 | {
10 | System.out.println("Car...");
11 | }
12 | }
--------------------------------------------------------------------------------
/Telusko4/src/main/java/com/navin/Telusko/Tyre.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | public class Tyre
4 | {
5 | private String brand;
6 |
7 | public String getBrand() {
8 | return brand;
9 | }
10 |
11 | public void setBrand(String brand) {
12 | this.brand = brand;
13 | }
14 |
15 | @Override
16 | public String toString() {
17 | return "Tyre [brand=" + brand + "]";
18 | }
19 |
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/Telusko4/src/main/java/com/navin/Telusko/Vehicle.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | public interface Vehicle
4 | {
5 |
6 | void drive();
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/Telusko4/src/main/java/spring.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/Telusko4/src/test/java/com/navin/Telusko/AppTest.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import junit.framework.Test;
4 | import junit.framework.TestCase;
5 | import junit.framework.TestSuite;
6 |
7 | /**
8 | * Unit test for simple App.
9 | */
10 | public class AppTest
11 | extends TestCase
12 | {
13 | /**
14 | * Create the test case
15 | *
16 | * @param testName name of the test case
17 | */
18 | public AppTest( String testName )
19 | {
20 | super( testName );
21 | }
22 |
23 | /**
24 | * @return the suite of tests being tested
25 | */
26 | public static Test suite()
27 | {
28 | return new TestSuite( AppTest.class );
29 | }
30 |
31 | /**
32 | * Rigourous Test :-)
33 | */
34 | public void testApp()
35 | {
36 | assertTrue( true );
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Telusko4/target/classes/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Built-By: Telusko
3 | Build-Jdk: 12.0.2
4 | Created-By: Maven Integration for Eclipse
5 |
6 |
--------------------------------------------------------------------------------
/Telusko4/target/classes/META-INF/maven/com.navin/Telusko/pom.properties:
--------------------------------------------------------------------------------
1 | #Generated by Maven Integration for Eclipse
2 | #Wed Aug 28 16:57:37 IST 2019
3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Youtube_Spring_Framework\\Bean Property_7\\Telusko
4 | m2e.projectName=Telusko4
5 | groupId=com.navin
6 | artifactId=Telusko
7 | version=0.0.1-SNAPSHOT
8 |
--------------------------------------------------------------------------------
/Telusko4/target/classes/META-INF/maven/com.navin/Telusko/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.navin
6 | Telusko
7 | 0.0.1-SNAPSHOT
8 | jar
9 |
10 | Telusko
11 | http://maven.apache.org
12 |
13 |
14 | UTF-8
15 |
16 |
17 |
18 |
19 | junit
20 | junit
21 | 3.8.1
22 | test
23 |
24 |
25 |
26 |
27 | org.springframework
28 | spring-context
29 | 5.1.9.RELEASE
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Telusko4/target/classes/com/navin/Telusko/App.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko4/target/classes/com/navin/Telusko/App.class
--------------------------------------------------------------------------------
/Telusko4/target/classes/com/navin/Telusko/Bike.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko4/target/classes/com/navin/Telusko/Bike.class
--------------------------------------------------------------------------------
/Telusko4/target/classes/com/navin/Telusko/Car.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko4/target/classes/com/navin/Telusko/Car.class
--------------------------------------------------------------------------------
/Telusko4/target/classes/com/navin/Telusko/Tyre.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko4/target/classes/com/navin/Telusko/Tyre.class
--------------------------------------------------------------------------------
/Telusko4/target/classes/com/navin/Telusko/Vehicle.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko4/target/classes/com/navin/Telusko/Vehicle.class
--------------------------------------------------------------------------------
/Telusko4/target/classes/spring.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/Telusko4/target/test-classes/com/navin/Telusko/AppTest.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko4/target/test-classes/com/navin/Telusko/AppTest.class
--------------------------------------------------------------------------------
/Telusko5/.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 |
27 |
28 |
--------------------------------------------------------------------------------
/Telusko5/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | Telusko5
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.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Telusko5/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/test/java=UTF-8
4 | encoding/=UTF-8
5 |
--------------------------------------------------------------------------------
/Telusko5/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
3 | org.eclipse.jdt.core.compiler.compliance=1.5
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.release=disabled
6 | org.eclipse.jdt.core.compiler.source=1.5
7 |
--------------------------------------------------------------------------------
/Telusko5/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/Telusko5/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.navin
6 | Telusko
7 | 0.0.1-SNAPSHOT
8 | jar
9 |
10 | Telusko
11 | http://maven.apache.org
12 |
13 |
14 | UTF-8
15 |
16 |
17 |
18 |
19 | junit
20 | junit
21 | 3.8.1
22 | test
23 |
24 |
25 |
26 |
27 | org.springframework
28 | spring-context
29 | 5.1.9.RELEASE
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Telusko5/src/main/java/com/navin/Telusko/App.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import org.springframework.context.ApplicationContext;
4 | import org.springframework.context.support.ClassPathXmlApplicationContext;
5 |
6 | /**
7 | * Hello world!
8 | *
9 | */
10 | public class App
11 | {
12 | public static void main( String[] args )
13 | {
14 | ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
15 |
16 |
17 | // Vehicle obj = (Vehicle)context.getBean("bike");
18 | // obj.drive();
19 |
20 | Tyre t = (Tyre) context.getBean("tyre");
21 | System.out.println(t);
22 | }
23 | }
24 |
25 |
--------------------------------------------------------------------------------
/Telusko5/src/main/java/com/navin/Telusko/Bike.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import org.springframework.stereotype.Component;
4 |
5 | @Component
6 | public class Bike implements Vehicle
7 | {
8 | public void drive()
9 | {
10 | System.out.println("Bike...");
11 | }
12 | }
--------------------------------------------------------------------------------
/Telusko5/src/main/java/com/navin/Telusko/Car.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import org.springframework.stereotype.Component;
4 |
5 | @Component
6 | public class Car implements Vehicle
7 | {
8 | public void drive()
9 | {
10 | System.out.println("Car...");
11 | }
12 | }
--------------------------------------------------------------------------------
/Telusko5/src/main/java/com/navin/Telusko/Tyre.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | public class Tyre
4 | {
5 | private String brand;
6 |
7 |
8 |
9 | public Tyre(String brand) {
10 | super();
11 | this.brand = brand;
12 | }
13 |
14 | public String getBrand() {
15 | return brand;
16 | }
17 |
18 | public void setBrand(String brand) {
19 | this.brand = brand;
20 | }
21 |
22 | @Override
23 | public String toString() {
24 | return "Tyre [brand=" + brand + "]";
25 | }
26 |
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/Telusko5/src/main/java/com/navin/Telusko/Vehicle.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | public interface Vehicle
4 | {
5 |
6 | void drive();
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/Telusko5/src/main/java/spring.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/Telusko5/src/test/java/com/navin/Telusko/AppTest.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import junit.framework.Test;
4 | import junit.framework.TestCase;
5 | import junit.framework.TestSuite;
6 |
7 | /**
8 | * Unit test for simple App.
9 | */
10 | public class AppTest
11 | extends TestCase
12 | {
13 | /**
14 | * Create the test case
15 | *
16 | * @param testName name of the test case
17 | */
18 | public AppTest( String testName )
19 | {
20 | super( testName );
21 | }
22 |
23 | /**
24 | * @return the suite of tests being tested
25 | */
26 | public static Test suite()
27 | {
28 | return new TestSuite( AppTest.class );
29 | }
30 |
31 | /**
32 | * Rigourous Test :-)
33 | */
34 | public void testApp()
35 | {
36 | assertTrue( true );
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Telusko5/target/classes/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Built-By: Telusko
3 | Build-Jdk: 12.0.2
4 | Created-By: Maven Integration for Eclipse
5 |
6 |
--------------------------------------------------------------------------------
/Telusko5/target/classes/META-INF/maven/com.navin/Telusko/pom.properties:
--------------------------------------------------------------------------------
1 | #Generated by Maven Integration for Eclipse
2 | #Wed Aug 28 16:59:27 IST 2019
3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Youtube_Spring_Framework\\Constructor Injection_8\\Telusko
4 | m2e.projectName=Telusko5
5 | groupId=com.navin
6 | artifactId=Telusko
7 | version=0.0.1-SNAPSHOT
8 |
--------------------------------------------------------------------------------
/Telusko5/target/classes/META-INF/maven/com.navin/Telusko/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.navin
6 | Telusko
7 | 0.0.1-SNAPSHOT
8 | jar
9 |
10 | Telusko
11 | http://maven.apache.org
12 |
13 |
14 | UTF-8
15 |
16 |
17 |
18 |
19 | junit
20 | junit
21 | 3.8.1
22 | test
23 |
24 |
25 |
26 |
27 | org.springframework
28 | spring-context
29 | 5.1.9.RELEASE
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Telusko5/target/classes/com/navin/Telusko/App.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko5/target/classes/com/navin/Telusko/App.class
--------------------------------------------------------------------------------
/Telusko5/target/classes/com/navin/Telusko/Bike.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko5/target/classes/com/navin/Telusko/Bike.class
--------------------------------------------------------------------------------
/Telusko5/target/classes/com/navin/Telusko/Car.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko5/target/classes/com/navin/Telusko/Car.class
--------------------------------------------------------------------------------
/Telusko5/target/classes/com/navin/Telusko/Tyre.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko5/target/classes/com/navin/Telusko/Tyre.class
--------------------------------------------------------------------------------
/Telusko5/target/classes/com/navin/Telusko/Vehicle.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko5/target/classes/com/navin/Telusko/Vehicle.class
--------------------------------------------------------------------------------
/Telusko5/target/classes/spring.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/Telusko5/target/test-classes/com/navin/Telusko/AppTest.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko5/target/test-classes/com/navin/Telusko/AppTest.class
--------------------------------------------------------------------------------
/Telusko6/.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 |
27 |
28 |
--------------------------------------------------------------------------------
/Telusko6/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | Telusko6
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.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Telusko6/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/test/java=UTF-8
4 | encoding/=UTF-8
5 |
--------------------------------------------------------------------------------
/Telusko6/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
3 | org.eclipse.jdt.core.compiler.compliance=1.5
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.release=disabled
6 | org.eclipse.jdt.core.compiler.source=1.5
7 |
--------------------------------------------------------------------------------
/Telusko6/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/Telusko6/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.navin
6 | Telusko
7 | 0.0.1-SNAPSHOT
8 | jar
9 |
10 | Telusko
11 | http://maven.apache.org
12 |
13 |
14 | UTF-8
15 |
16 |
17 |
18 |
19 | junit
20 | junit
21 | 3.8.1
22 | test
23 |
24 |
25 |
26 |
27 | org.springframework
28 | spring-context
29 | 5.1.9.RELEASE
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Telusko6/src/main/java/com/navin/Telusko/App.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import org.springframework.context.ApplicationContext;
4 | import org.springframework.context.support.ClassPathXmlApplicationContext;
5 |
6 | /**
7 | * Hello world!
8 | *
9 | */
10 | public class App
11 | {
12 | public static void main( String[] args )
13 | {
14 | ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
15 |
16 |
17 | Car obj = (Car)context.getBean("car");
18 | obj.drive();
19 |
20 |
21 | }
22 | }
23 |
24 |
--------------------------------------------------------------------------------
/Telusko6/src/main/java/com/navin/Telusko/Bike.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import org.springframework.stereotype.Component;
4 |
5 | @Component
6 | public class Bike implements Vehicle
7 | {
8 | public void drive()
9 | {
10 | System.out.println("Bike...");
11 | }
12 | }
--------------------------------------------------------------------------------
/Telusko6/src/main/java/com/navin/Telusko/Car.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 | import org.springframework.stereotype.Component;
5 |
6 | @Component
7 | public class Car implements Vehicle
8 | {
9 | @Autowired
10 | private Tyre tyre;
11 |
12 |
13 |
14 | public Tyre getTyre() {
15 | return tyre;
16 | }
17 |
18 |
19 |
20 | public void setTyre(Tyre tyre) {
21 | this.tyre = tyre;
22 | }
23 |
24 |
25 |
26 | public void drive()
27 | {
28 | System.out.println("car "+ tyre);
29 | }
30 | }
--------------------------------------------------------------------------------
/Telusko6/src/main/java/com/navin/Telusko/Tyre.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import org.springframework.stereotype.Component;
4 |
5 | @Component
6 | public class Tyre
7 | {
8 | private String brand;
9 |
10 |
11 |
12 | public String getBrand() {
13 | return brand;
14 | }
15 |
16 | public void setBrand(String brand) {
17 | this.brand = brand;
18 | }
19 |
20 | @Override
21 | public String toString() {
22 | return "Its working...";
23 | }
24 |
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/Telusko6/src/main/java/com/navin/Telusko/Vehicle.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | public interface Vehicle
4 | {
5 |
6 | void drive();
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/Telusko6/src/main/java/spring.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
--------------------------------------------------------------------------------
/Telusko6/src/test/java/com/navin/Telusko/AppTest.java:
--------------------------------------------------------------------------------
1 | package com.navin.Telusko;
2 |
3 | import junit.framework.Test;
4 | import junit.framework.TestCase;
5 | import junit.framework.TestSuite;
6 |
7 | /**
8 | * Unit test for simple App.
9 | */
10 | public class AppTest
11 | extends TestCase
12 | {
13 | /**
14 | * Create the test case
15 | *
16 | * @param testName name of the test case
17 | */
18 | public AppTest( String testName )
19 | {
20 | super( testName );
21 | }
22 |
23 | /**
24 | * @return the suite of tests being tested
25 | */
26 | public static Test suite()
27 | {
28 | return new TestSuite( AppTest.class );
29 | }
30 |
31 | /**
32 | * Rigourous Test :-)
33 | */
34 | public void testApp()
35 | {
36 | assertTrue( true );
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Telusko6/target/classes/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Built-By: Telusko
3 | Build-Jdk: 12.0.2
4 | Created-By: Maven Integration for Eclipse
5 |
6 |
--------------------------------------------------------------------------------
/Telusko6/target/classes/META-INF/maven/com.navin/Telusko/pom.properties:
--------------------------------------------------------------------------------
1 | #Generated by Maven Integration for Eclipse
2 | #Wed Aug 28 17:02:12 IST 2019
3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Youtube_Spring_Framework\\Autowired Annotation_9\\Telusko
4 | m2e.projectName=Telusko6
5 | groupId=com.navin
6 | artifactId=Telusko
7 | version=0.0.1-SNAPSHOT
8 |
--------------------------------------------------------------------------------
/Telusko6/target/classes/META-INF/maven/com.navin/Telusko/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.navin
6 | Telusko
7 | 0.0.1-SNAPSHOT
8 | jar
9 |
10 | Telusko
11 | http://maven.apache.org
12 |
13 |
14 | UTF-8
15 |
16 |
17 |
18 |
19 | junit
20 | junit
21 | 3.8.1
22 | test
23 |
24 |
25 |
26 |
27 | org.springframework
28 | spring-context
29 | 5.1.9.RELEASE
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Telusko6/target/classes/com/navin/Telusko/App.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko6/target/classes/com/navin/Telusko/App.class
--------------------------------------------------------------------------------
/Telusko6/target/classes/com/navin/Telusko/Bike.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko6/target/classes/com/navin/Telusko/Bike.class
--------------------------------------------------------------------------------
/Telusko6/target/classes/com/navin/Telusko/Car.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko6/target/classes/com/navin/Telusko/Car.class
--------------------------------------------------------------------------------
/Telusko6/target/classes/com/navin/Telusko/Tyre.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko6/target/classes/com/navin/Telusko/Tyre.class
--------------------------------------------------------------------------------
/Telusko6/target/classes/com/navin/Telusko/Vehicle.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko6/target/classes/com/navin/Telusko/Vehicle.class
--------------------------------------------------------------------------------
/Telusko6/target/classes/spring.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
--------------------------------------------------------------------------------
/Telusko6/target/test-classes/com/navin/Telusko/AppTest.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/navinreddy20/Spring_Framework-/17f5b3355dc3be5290f628c14259ebae6a1952f5/Telusko6/target/test-classes/com/navin/Telusko/AppTest.class
--------------------------------------------------------------------------------