Package org.mycore.common.config
Class MCRRuntimeComponentDetector
java.lang.Object
org.mycore.common.config.MCRRuntimeComponentDetector
On first access this class detects all components, that is either MyCoRe components or application modules, that are
available via the current ClassLoader. Every
Manifest
of the jar file requires to have a main attribute "POM"
and application modules also need to have a "MCR-Application-Module" main attribute present.- Since:
- 2013.12
- Author:
- Thomas Scheffler (yagee)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SortedSet<MCRComponent>
Returns all components sorted via their natural ordering.static SortedSet<MCRComponent>
Returns only application modules sorted via their natural ordering.static SortedSet<MCRComponent>
Returns only mycore components sorted via their natural ordering.
-
Constructor Details
-
MCRRuntimeComponentDetector
public MCRRuntimeComponentDetector()
-
-
Method Details
-
getAllComponents
Returns all components sorted via their natural ordering.- See Also:
-
getMyCoReComponents
Returns only mycore components sorted via their natural ordering.- See Also:
-
getApplicationModules
Returns only application modules sorted via their natural ordering.- See Also:
-