|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttk.exgerm.core.Core
public class Core
Glavna klasa u celom projektu. Preko nje se dolazi do svih servisa. Nije
vidljiva spolja, služi samo za internu upotrebu unutar Core komponente.
Druge komponete mogu da koriste njene servise preko ICoreContext interfejsa.
| Field Summary | |
|---|---|
protected List<ExGCommand> |
commands
Komande koje sam Core registruje |
protected Configuration |
config
Za čuvanje konfiguracija |
protected ConfigurationManager |
configurationManager
Prozor za konfigurisanje aplikacije |
protected org.osgi.framework.BundleContext |
context
Kontekst u kome se komponenta izvršava unutar OSGI Fremework-a. |
protected ICoreContext |
coreContext
Kontekst Core komponente koji koristi svaka druga komponenta za komunikaciju sa Core-om. |
protected DataRegister |
dataRegister
Registar podataka koje komponente mogu da razmenjuju. |
protected EventDispatcher |
eventDispatcher
Klasa zadužena za mehanizam događaja. |
protected static Core |
instance
Pošto je klasa singleton, ovde se čuva referenca |
protected List<ExGIterator> |
iterators
Iteratori koje Core sam registruje |
protected MainWindow |
mainWindow
Glavni porozor aplikacije |
protected ServiceRegister |
serviceRegister
Registar svih servisa koje pružaju komponente |
| Method Summary | |
|---|---|
void |
close()
Način da MainWindow Core-u da korisnik želi da zatvori aplikaciju. |
Configuration |
getConfig()
|
ConfigurationManager |
getConfigurationManager()
|
ICoreContext |
getCoreContext(String name)
|
DataRegister |
getDataRegister()
|
EventDispatcher |
getEventDispatcher()
|
static Core |
getInstance()
Klijenti treba da koriste ovu metodu za dobijanje instance klase Core. |
MainWindow |
getMainWindow()
|
ServiceRegister |
getServiceRegister()
|
void |
preventClosing()
|
void |
setCoreContext(ICoreContext coreContext)
|
void |
setDataRegister(DataRegister dataRegister)
|
void |
setEventDispatcher(EventDispatcher eventDispatcher)
|
void |
setMainWindow(MainWindow mainWindow)
|
void |
setServiceRegister(ServiceRegister serviceRegister)
|
void |
start()
Nacin da se Core obavesti da se pokrene. |
void |
stop()
Način da se Core obavesti da treba da se zaustavi. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Core instance
protected ICoreContext coreContext
protected ServiceRegister serviceRegister
protected DataRegister dataRegister
protected org.osgi.framework.BundleContext context
protected MainWindow mainWindow
protected EventDispatcher eventDispatcher
protected List<ExGCommand> commands
protected List<ExGIterator> iterators
protected Configuration config
protected ConfigurationManager configurationManager
| Method Detail |
|---|
public static Core getInstance()
Core.
Corepublic void start()
public void stop()
public void close()
public ICoreContext getCoreContext(String name)
public void setServiceRegister(ServiceRegister serviceRegister)
serviceRegister - the serviceRegister to setpublic ServiceRegister getServiceRegister()
public void setMainWindow(MainWindow mainWindow)
mainWindow - the mainWindow to setpublic MainWindow getMainWindow()
public void setEventDispatcher(EventDispatcher eventDispatcher)
eventDispatcher - the eventDispatcher to setpublic EventDispatcher getEventDispatcher()
public void setCoreContext(ICoreContext coreContext)
coreContext - the coreContext to setpublic DataRegister getDataRegister()
public void setDataRegister(DataRegister dataRegister)
dataRegister - the dataRegister to setpublic Configuration getConfig()
public ConfigurationManager getConfigurationManager()
public void preventClosing()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||