Package sonia.scm
Class BasicContextProvider
java.lang.Object
sonia.scm.BasicContextProvider
- All Implemented Interfaces:
SCMContextProvider
The default implementation of
SCMContextProvider
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
Default name of the SCM-Manager base directorystatic final String
Java system property for the SCM-Manager base directorystatic final String
Path to the maven properties file of the scm-core artifactstatic final String
Maven property for the version of the artifactstatic final String
Default versionString
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the base directory of the SCM-Manager.Returns the instance id of the SCM-Manager used.getStage()
Returns the current stage of SCM-Manager.Returns an exception which is occurred on context startup.Returns the version of the SCM-Manager.Resolves the given path against the base directory.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface sonia.scm.SCMContextProvider
getDocumentationVersion
-
Field Details
-
VERSION_DEFAULT
Default versionString
- See Also:
-
DIRECTORY_DEFAULT
Default name of the SCM-Manager base directory- See Also:
-
DIRECTORY_PROPERTY
Java system property for the SCM-Manager base directory- See Also:
-
MAVEN_PROPERTIES
Path to the maven properties file of the scm-core artifact- See Also:
-
MAVEN_PROPERTY_VERSION
Maven property for the version of the artifact- See Also:
-
DEVELOPMENT_INSTANCE_ID
- See Also:
-
-
Constructor Details
-
BasicContextProvider
public BasicContextProvider()Constructs a newBasicContextProvider
object.
-
-
Method Details
-
resolve
Description copied from interface:SCMContextProvider
Resolves the given path against the base directory.- Specified by:
resolve
in interfaceSCMContextProvider
- Parameters:
path
- path to resolve- Returns:
- absolute resolved path
-
getBaseDirectory
Description copied from interface:SCMContextProvider
Returns the base directory of the SCM-Manager.- Specified by:
getBaseDirectory
in interfaceSCMContextProvider
-
getStage
Description copied from interface:SCMContextProvider
Returns the current stage of SCM-Manager.- Specified by:
getStage
in interfaceSCMContextProvider
-
getStartupError
Description copied from interface:SCMContextProvider
Returns an exception which is occurred on context startup. The method returns null if the start was successful.- Specified by:
getStartupError
in interfaceSCMContextProvider
- Returns:
- startup exception of null
-
getVersion
Returns the version of the SCM-Manager. If the version is not set, theVERSION_DEFAULT
is returned.- Specified by:
getVersion
in interfaceSCMContextProvider
-
getInstanceId
Description copied from interface:SCMContextProvider
Returns the instance id of the SCM-Manager used.- Specified by:
getInstanceId
in interfaceSCMContextProvider
-