Delete Rocket.java
This commit is contained in:
parent
34cbaab012
commit
099678fd50
|
@ -1,20 +0,0 @@
|
|||
package com.baeldung.beaninjectiontypes;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class Rocket {
|
||||
|
||||
private Engine engine;
|
||||
|
||||
@Autowired
|
||||
public Rocket(Engine engine) {
|
||||
this.engine = engine;
|
||||
}
|
||||
|
||||
public Engine getEngine() {
|
||||
return engine;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue