You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suremaker edited this page Dec 11, 2012
·
2 revisions
The Spring.FluentContext allows to configure object dependencies using explicit way or autowiring, however none of it guarantees that object is fully configured. Dependency checking feature allows to verify if all dependencies were injected to object during its configuration.
The CheckDependencies() method offers this functionality. It accepts Spring.Objects.Factory.Support.DependencyCheckingMode enum parameter, which can have following values:
None - no dependency checking,
Simple - dependency checking for primitive and collection types only,
Object - dependency checking for dependent objects,
All - dependency checking for all types (primitives, objects and collections).
There is also parameterless overload of CheckDependencies() method which uses All mode.
The following example shows usage of CheckDependencies() method: