public interface ClassContainer
Modifier and Type | Method and Description |
---|---|
<T> T |
create(java.lang.Class<T> klass)
put the classes in the container
|
<T> T |
create(java.lang.Class<T> klass,
java.lang.Object instance)
put the classes in the container
|
java.util.ArrayList<java.lang.Class<?>> |
getAll()
get all the classes in the container
|
<T> java.util.ArrayList<T> |
getService(java.lang.Class<T> type)
get service
|
<T> T |
put(java.lang.Class<T> klass,
java.lang.Object instance) |
java.util.ArrayList<java.lang.Class<?>> getAll()
<T> T put(java.lang.Class<T> klass, java.lang.Object instance)
<T> T create(java.lang.Class<T> klass, java.lang.Object instance)
T
- classklass
- klassinstance
- object<T> T create(java.lang.Class<T> klass)
T
- classklass
- class<T> java.util.ArrayList<T> getService(java.lang.Class<T> type)
T
- Servicetype
- Service