Check if factory matches all of the given classes
a "/" separate list of classes to match, only match if all classes are matched
TRUE if factory matches or if classes is NULL.
1.4
Check if factory matches all of the given classes