instantiating bean by constructor and factory static method and factory instance method, and instantiating innner class bean