native adapter hack for classes to implement interfaces.