public class ALDVersionProviderFactory extends Object
Here JVM properties are evaluated to dynamically configure the way, how Alida handles software versions. Usually there are different possibilities from where to get software version information. The probably most popular way is to query software repositories like CVS, SVN or Git. However, other options can be imagined as well.
Alida supports dynamic configuration of the version data handling. This
factory instantiates a concrete version provider based on the
environment property alida_versionprovider_class. This property
should contain the name of a class extending base class
ALDVersionProvider. The generated instance of this class will be
used for all software version requests triggered during Alida operator
invocations.
| Constructor and Description |
|---|
ALDVersionProviderFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
getClassName()
Returns version provider class according to environment configuration.
|
static ALDVersionProvider |
getProviderInstance()
Returns a reference to the currently selected provider object.
|
static ALDVersionProvider |
getProviderInstance(String providerClass)
Returns a reference to the provider object of the specified class.
|
static boolean |
isClassNameSpecified()
Returns true if the factory can be properly configured.
|
static void |
setProviderClass(String pclass)
Explicitly request a certain class from the code.
|
public static ALDVersionProvider getProviderInstance()
The provider class can be specified by environment properties. This method guarantees to never return null.
public static ALDVersionProvider getProviderInstance(String providerClass)
providerClass - Name of desired provider class.public static void setProviderClass(String pclass)
Note: this setting overrides potentially existing environment settings!
pclass - Desired class for provider objects.protected static String getClassName()
public static boolean isClassNameSpecified()
Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.