code: public void registerAsType(Object locator, Class<?> type) {
  		if (locator == null)
  			throw new NullPointerException("Locator cannot be null");
  		if (type == null)
  			throw new NullPointerException("Type cannot be null");
  
  		IComponentFactory factory = new DefaultComponentFactory(type);
  		_registrations.add(new Registration(locator, factory));
  	}
docs: Registers a component using its type (a constructor function).
  
  @param locator a locator to identify component to be created.
  @param type    a component type.