Check if @factory implements the interface with name @interfacename.
an interface name
Return: %TRUE when @factory implement the interface.
See Implementation
Check if @factory implements the interface with name @interfacename.