src/infinity/ecs/core/EntityManager.java
/**
	 * Registers the specified {@link ComponentFactory} with this {@link EntityManager}. All
	 * {@link Component}s of the {@link ComponentType} specified by the factory are now constructed
	 * by that factory. Any previously existing factories for the same type are overridden.
	 * 
	 * @param factory The {@link ComponentFactory} which should be registered.
	 * @throws IllegalArgumentException when factory was null.
	 */
Registers the specified  ComponentFactory with this  EntityManager. All
Components of the  ComponentType specified by the factory are now constructed
by that factory. Any previously existing factories for the same type are overridden.

@param factory The  ComponentFactory which should be registered.
@throws IllegalArgumentException when factory was null.
Registers the specified ComponentFactory with this EntityManager . All Components of the ComponentType specified by the factory are now constructed by that factory . Any previously existing factories for the same type are overridden . @param factory The ComponentFactory which should be registered . @throws IllegalArgumentException when factory was null .
public void registerComponentFactory(ComponentFactory factory)
			throws IllegalArgumentException {
		if (factory == null)
			throw new IllegalArgumentException();
		int id = factory.getComponentType().getId();
		_factories.set(id, factory);
	}
public void registerComponentFactory ( ComponentFactory factory ) throws IllegalArgumentException { if ( factory == null ) throw new IllegalArgumentException ( ) ; int id = factory . getComponentType ( ) . getId ( ) ; _factories . set ( id , factory ) ; }
Registers the specified {@link ComponentFactory} with this {@link EntityManager}.
Registers the specified { @link ComponentFactory } with this { @link EntityManager } .