snaker-core/src/main/java/org/snaker/engine/core/ServiceContext.java
public static void put(String name, Object object) {
		AssertHelper.notNull(context, "未注册服务上下文");
		if(log.isInfoEnabled()) {
			log.info("put new instance[name=" + name + "][object=" + object + "]");
		}
		context.put(name, object);
	}
public static void put(String name, Object object) {
		AssertHelper.notNull(context, "未注册服务上下文");
		if(log.isInfoEnabled()) {
			log.info("put new instance[name=" + name + "][object=" + object + "]");
		}
		context.put(name, object);
	}
public static void put ( String name , Object object ) { AssertHelper . notNull ( context , "未注册服务上下文"); if ( log . isInfoEnabled ( ) ) { log . info ( "put new instance[name=" + name + "][object=" + object + "]" ) ; } context . put ( name , object ) ; }
向上下文添加服务实例
@param name 服务名称
@param object 服务实例
向上下文添加服务实例