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 Stringstatic final StringDefault name of the SCM-Manager base directorystatic final StringJava system property for the SCM-Manager base directorystatic final StringPath to the maven properties file of the scm-core artifactstatic final StringMaven property for the version of the artifactstatic final StringDefault 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, waitMethods 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 newBasicContextProviderobject.
-
-
Method Details
-
resolve
Description copied from interface:SCMContextProviderResolves the given path against the base directory.- Specified by:
resolvein interfaceSCMContextProvider- Parameters:
path- path to resolve- Returns:
- absolute resolved path
-
getBaseDirectory
Description copied from interface:SCMContextProviderReturns the base directory of the SCM-Manager.- Specified by:
getBaseDirectoryin interfaceSCMContextProvider
-
getStage
Description copied from interface:SCMContextProviderReturns the current stage of SCM-Manager.- Specified by:
getStagein interfaceSCMContextProvider
-
getStartupError
Description copied from interface:SCMContextProviderReturns an exception which is occurred on context startup. The method returns null if the start was successful.- Specified by:
getStartupErrorin interfaceSCMContextProvider- Returns:
- startup exception of null
-
getVersion
Returns the version of the SCM-Manager. If the version is not set, theVERSION_DEFAULTis returned.- Specified by:
getVersionin interfaceSCMContextProvider
-
getInstanceId
Description copied from interface:SCMContextProviderReturns the instance id of the SCM-Manager used.- Specified by:
getInstanceIdin interfaceSCMContextProvider
-