Class CrowdApplicationFactory
java.lang.Object
com.atlassian.crowd.console.embedded.api.CrowdApplicationFactory
- All Implemented Interfaces:
ApplicationFactory
This class has the responsibility of returning an instance of the 'Crowd'
application (not constructing it).
Uses
InternalApplicationHelper internally, which assumes there's
only one application of type CROWD. This additionally assumes that the application name doesn't change during
runtime.- Since:
- 2.5
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanUsed in order to distinguish if we're running in Embedded Crowd or in Crowd as standalone product.
-
Field Details
-
DEFAULT_CROWD_APPLICATION_NAME
- See Also:
-
-
Constructor Details
-
CrowdApplicationFactory
-
-
Method Details
-
getApplication
- Specified by:
getApplicationin interfaceApplicationFactory
-
getApplicationName
- Specified by:
getApplicationNamein interfaceApplicationFactory
-
isEmbeddedCrowd
public boolean isEmbeddedCrowd()Description copied from interface:ApplicationFactoryUsed in order to distinguish if we're running in Embedded Crowd or in Crowd as standalone product.- Specified by:
isEmbeddedCrowdin interfaceApplicationFactory- Returns:
- true if we're running in Embedded Crowd, false if in Crowd as standalone product.
-