Skip to content

Commit

Permalink
iso / style
Browse files Browse the repository at this point in the history
  • Loading branch information
phlppchrtn committed Jun 2, 2024
1 parent 927143a commit 5b8f1fe
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions vertigo-core/src/main/java/io/vertigo/core/util/InjectorUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ public static <T> T newInstance(final Class<T> clazz) {
.isNotNull(clazz)
.isFalse(clazz.isAssignableFrom(Activeable.class), " {0} is an Activeable component and must be registred in the NodeConfig for creation at the application startup", clazz);
//---
return ComponentSpaceLoader.createInstance(clazz, Node.getNode().getComponentSpace(), Optional.empty(), Collections.emptyMap());
return ComponentSpaceLoader.createInstance(
clazz,
Node.getNode().getComponentSpace(),
Optional.empty(),
Collections.emptyMap());
}

/**
Expand All @@ -54,7 +58,11 @@ public static void injectMembers(final Object instance) {
Assertion.check()
.isNotNull(instance);
//---
ComponentSpaceLoader.injectMembers(instance, Node.getNode().getComponentSpace(), Optional.empty(), Collections.emptyMap());
ComponentSpaceLoader.injectMembers(
instance,
Node.getNode().getComponentSpace(),
Optional.empty(),
Collections.emptyMap());
}

}

0 comments on commit 5b8f1fe

Please sign in to comment.