|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.managers.ManagerDefaultSelector
public class ManagerDefaultSelector
Records and executes a desired set of defaults for the JMRI InstanceManager and ProxyManagers
JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
| Nested Class Summary | |
|---|---|
static class |
ManagerDefaultSelector.Item
|
| Field Summary | |
|---|---|
Hashtable<Class<?>,String> |
defaults
|
static ManagerDefaultSelector |
instance
|
ManagerDefaultSelector.Item[] |
knownManagers
|
(package private) static org.slf4j.Logger |
log
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
|
void |
configure()
load into InstanceManager |
String |
getDefault(Class<?> managerClass)
Return the userName of the system that provides the default instance for a specific class. |
protected void |
notifyPropertyChangeListener(String property,
Object oldValue,
Object newValue)
Trigger the notification of all PropertyChangeListeners |
void |
removePropertyChangeListener(PropertyChangeListener l)
|
void |
setDefault(Class<?> managerClass,
String userName)
Record the userName of the system that provides the default instance for a specific class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ManagerDefaultSelector instance
public Hashtable<Class<?>,String> defaults
public final ManagerDefaultSelector.Item[] knownManagers
static org.slf4j.Logger log
| Method Detail |
|---|
public String getDefault(Class<?> managerClass)
managerClass - the specific type, e.g. TurnoutManager,
for which a default system is desired
public void setDefault(Class<?> managerClass,
String userName)
managerClass - the specific type, e.g. TurnoutManager,
for which a default system is desireduserName - of the system, or null if none setpublic void configure()
public void removePropertyChangeListener(PropertyChangeListener l)
public void addPropertyChangeListener(PropertyChangeListener l)
protected void notifyPropertyChangeListener(String property,
Object oldValue,
Object newValue)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||