Class SourceManager
java.lang.Object
edu.internet2.middleware.subject.provider.SourceManager
Factory to load and get Sources. Sources are defined
in a configuration file named, subject.properties, and must
be placed in the classpath.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
bean to hold the status stuff across all sources -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static SourceManager
Returns the singleton instance of SourceManager.Gets Source for the argument source ID.get status information across all sourcesReturns a Collection of Sources.getSources
(SubjectType type) Returns a Collection of Sources that supports the argument SubjectType.void
internal_removeSource
(String sourceId) remove source for testingvoid
loadSource
(Source source) (non-javadoc)static void
Validates subject.properties config file.print out the config for the subject APIvoid
reloadSource
(String sourceId) static boolean
-
Method Details
-
clearAllSources
public static void clearAllSources() -
getSourceManagerStatusBean
get status information across all sources- Returns:
- the status rollup bean
-
printConfig
print out the config for the subject API- Returns:
- the config
-
getInstance
Returns the singleton instance of SourceManager.- Returns:
- source manager
-
getSource
Gets Source for the argument source ID.- Parameters:
sourceId
-- Returns:
- Source
- Throws:
SourceUnavailableException
-
getSources
Returns a Collection of Sources.- Returns:
- Collection
-
getSources
Returns a Collection of Sources that supports the argument SubjectType.- Parameters:
type
-- Returns:
- Collection
-
reloadSource
-
loadSource
(non-javadoc)- Parameters:
source
-
-
usingSubjectProperties
public static boolean usingSubjectProperties()- Returns:
- true if using subject.properties, false if subject.properties
-
main
Validates subject.properties config file.- Parameters:
args
-
-
internal_removeSource
remove source for testing- Parameters:
sourceId
-
-