refactor adapter and api interface
fix annotation processor according to superclass and refactor it