public interface test{
void do();
}
public Class testImp
{
@Autowired
ApplicationContext appContext;
public T getBeanWithType(T type){
@Override
public T T getRepository(T type) {
return (T) appContext.getBean(type);
}
pulic void getType(T type){
return getBeanWithType(test.Class)
}
}
Asked
Active
Viewed 339 times
1
-
get from context with type ,with Interface of class, no name class. – Ali Lotfi Dec 09 '15 at 08:42