/**
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *  
  * 	http://www.apache.org/licenses/LICENSE-2.0
  *  
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License. 
  */

package org.ximplementation.support;

import java.util.Collection;
import java.util.Map;

/**
 * 简单实现者Bean工厂。
 * 
 * @author earthangry@gmail.com
 * @date 2016年8月15日
 *
 */
public class SimpleImplementorBeanFactory implements ImplementorBeanFactory
{
	private Map<Class<?>, ? extends Collection<?>> implementorBeansMap;
	
	public SimpleImplementorBeanFactory()
	{
		super();
	}

	public SimpleImplementorBeanFactory(
			Map<Class<?>, ? extends Collection<?>> implementorBeansMap)
	{
		super();
		this.implementorBeansMap = implementorBeansMap;
	}

	public Map<Class<?>, ? extends Collection<?>> getImplementorBeansMap()
	{
		return implementorBeansMap;
	}

	public void setImplementorBeansMap(
			Map<Class<?>, ? extends Collection<?>> implementorBeansMap)
	{
		this.implementorBeansMap = implementorBeansMap;
	}

	@Override
	public Collection<?> getImplementorBeans(Class<?> implementor)
	{
		return (this.implementorBeansMap == null ? null
				: this.implementorBeansMap.get(implementor));
	}
}

@@ -672,20 +672,139 @@
 %0A * 
-%E7%AE%80%E5%8D%95%E5%AE%9E%E7%8E%B0%E8%80%85Bean%E5%B7%A5%E5%8E%82%E3%80%82
+Simple %3Ci%3Eimplementor%3C/i%3E bean factory.%0A * %3Cp%3E%0A * It manages a %7B@code Map%7D and simply get %3Ci%3Eimplementor%3C/i%3E beans from it.%0A * %3C/p%3E
 %0A * 
@@ -853,14 +853,13 @@
 2016
-%E5%B9%B48%E6%9C%88
+-8-
 15
-%E6%97%A5
 %0A *%0A

Change SimpleImplementorBeanFactory doc to English