Example #1
0
 /// <summary>
 /// Returns a boolean value if the current application context contains an named object.
 /// </summary>
 /// <param name="objectName">Accepts the name of the object to check.</param>
 public static bool Contains(string objectName)
 {
     SpringApplicationContext.EnsureContext();
     return(SpringApplicationContext.Context.ContainsObject(objectName));
 }
Example #2
0
 /// <summary>
 /// Return a instance of an object in the context by the specified name.
 /// </summary>
 /// <param name="objectName">Accepts a string object name.</param>
 public static object Resolve(string objectName)
 {
     SpringApplicationContext.EnsureContext();
     return(SpringApplicationContext.Context.GetObject(objectName));
 }