01: package org.osbl;
02:
03: import java.util.List;
04:
05: public abstract class ServiceProvider {
06: protected static ServiceProvider INSTANCE;
07:
08: public abstract List<String> getServiceNames();
09:
10: public abstract Object getService(String name);
11:
12: public abstract <T> T getService(Class<T> type);
13:
14: public abstract void autowireServices(Object bean);
15:
16: public static ServiceProvider getInstance() {
17: return INSTANCE;
18: }
19: }
|