mirror of
https://github.com/mbierlee/poodinis.git
synced 2024-11-15 04:04:01 +01:00
Make ApplicationContext more robust
By including members with non-public visibility
This commit is contained in:
parent
13921a128e
commit
f2ff12dc58
|
@ -25,7 +25,7 @@ version(unittest) {
|
||||||
class AutowiredTestContext : ApplicationContext {
|
class AutowiredTestContext : ApplicationContext {
|
||||||
|
|
||||||
@Autowire
|
@Autowire
|
||||||
public UnrelatedClass unrelatedClass;
|
private UnrelatedClass unrelatedClass;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
public ClassWrapper wrapper() {
|
public ClassWrapper wrapper() {
|
||||||
|
@ -36,10 +36,10 @@ version(unittest) {
|
||||||
class ComplexAutowiredTestContext : ApplicationContext {
|
class ComplexAutowiredTestContext : ApplicationContext {
|
||||||
|
|
||||||
@Autowire
|
@Autowire
|
||||||
public UnrelatedClass unrelatedClass;
|
private UnrelatedClass unrelatedClass;
|
||||||
|
|
||||||
@Autowire
|
@Autowire
|
||||||
public ClassWrapper classWrapper;
|
protected ClassWrapper classWrapper;
|
||||||
|
|
||||||
public override void registerDependencies(shared(DependencyContainer) container) {
|
public override void registerDependencies(shared(DependencyContainer) container) {
|
||||||
container.register!UnrelatedClass;
|
container.register!UnrelatedClass;
|
||||||
|
|
Loading…
Reference in a new issue