|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.subject.provider.SourceManager
public class SourceManager
Factory to load and get Sources. Sources are defined in a configuration file named, sources.xml, and must be placed in the classpath.
Method Summary | |
---|---|
static SourceManager |
getInstance()
Returns the singleton instance of SourceManager. |
Source |
getSource(String sourceId)
Gets Source for the argument source ID. |
Collection<Source> |
getSources()
Returns a Collection of Sources. |
Collection<Source> |
getSources(SubjectType type)
Returns a Collection of Sources that supports the argument SubjectType. |
void |
loadSource(Source source)
(non-javadoc) |
static void |
main(String[] args)
Validates sources.xml config file. |
String |
printConfig()
print out the config for the subject API |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String printConfig()
public static SourceManager getInstance()
public Source getSource(String sourceId) throws SourceUnavailableException
sourceId
-
SourceUnavailableException
public Collection<Source> getSources()
public Collection<Source> getSources(SubjectType type)
type
-
public void loadSource(Source source)
source
- public static void main(String[] args)
args
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |