Class CrowdApplicationFactory

java.lang.Object
com.atlassian.crowd.console.embedded.api.CrowdApplicationFactory
All Implemented Interfaces:
com.atlassian.crowd.embedded.api.ApplicationFactory

public class CrowdApplicationFactory extends Object implements com.atlassian.crowd.embedded.api.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 Details

  • Constructor Details

  • Method Details

    • getApplication

      public com.atlassian.crowd.model.application.Application getApplication()
      Specified by:
      getApplication in interface com.atlassian.crowd.embedded.api.ApplicationFactory
    • getApplicationName

      public String getApplicationName()
      Specified by:
      getApplicationName in interface com.atlassian.crowd.embedded.api.ApplicationFactory
    • isEmbeddedCrowd

      public boolean isEmbeddedCrowd()
      Specified by:
      isEmbeddedCrowd in interface com.atlassian.crowd.embedded.api.ApplicationFactory