|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.javatools.db.DBCore
public class DBCore
The DBCore serves two purposes:
Method Summary | ||
---|---|---|
|
get(java.lang.Class<T> clz) Retrieves a singleton instance that has been registered. |
|
java.util.Map<java.lang.String,Thunk> |
getFactoryMap(java.lang.Class clz) |
|
static java.lang.ClassLoader |
getImplClassLoader() Internal use only. |
|
static DBCore |
getInstance() The one singleton pattern that the API should have. |
|
|
getRegisteredFactory(java.lang.Class<T> clz, java.lang.String identifier) If a given factory class has had a Map of implmenetation classes registered with the core, then this method looks up the implementation class registered against the given identifier. |
|
|
populateFactoryList(java.lang.Class<T> clz, java.util.List<T> list) Adds all the registered factories for the given factory class to the given list. |
|
|
populateFactoryList(java.lang.Class<T> clz, java.util.List<T> list, java.lang.Iterable<? extends Thunk> thunks) |
|
void |
put(java.lang.Object obj) Registers a singleton instance. |
|
|
registerFactoryList(java.lang.Class clz, java.util.List<? extends Thunk> list) Registers an Iterable of classes that can be looked up by the API. |
|
|
registerFactoryMap(java.lang.Class clz, java.util.Map<java.lang.String,Thunk> map) Registers an Map of classes that can be looked up by the API. |
|
|
remove(java.lang.Class<T> clz) |
|
static void |
setImplClassLoader(java.lang.ClassLoader cl) Internal use only. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DBCore getInstance()
public static void setImplClassLoader(java.lang.ClassLoader cl)
public static java.lang.ClassLoader getImplClassLoader()
public <T> void registerFactoryList(java.lang.Class clz, java.util.List<? extends Thunk> list)
clz
- the factory or listener classpop
- an iterable of factory/listener implementations (the implementation classes should be lazy loaded on the call to get() on each Thunk ).public <T> void registerFactoryMap(java.lang.Class clz, java.util.Map<java.lang.String,Thunk> map)
clz
- the factory or listener classmap
- a map of identifiers to Thunks - the Thunks get method should return a Class, and the class only loaded on the first call to get().getRegisteredFactory(Class,String)
public java.util.Map<java.lang.String,Thunk> getFactoryMap(java.lang.Class clz)
public <T> T getRegisteredFactory(java.lang.Class<T> clz, java.lang.String identifier)
clz
- the interface we expect the implementation to implementidentifier
- the identifier that implementations are key'd bypublic <T> void populateFactoryList(java.lang.Class<T> clz, java.util.List<T> list)
public <T> void populateFactoryList(java.lang.Class<T> clz, java.util.List<T> list, java.lang.Iterable<? extends Thunk> thunks)
public void put(java.lang.Object obj)
public <T> T get(java.lang.Class<T> clz)
clz
- the class of object we're looking forpublic <T> T remove(java.lang.Class<T> clz)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |