mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-12 07:57:41 +00:00
GUAC-340: Add Environment and LocalEnvironment, collectively replacing GuacamoleHome and GuacamoleProperties. Mark GuacamoleHome and GuacamoleProperties as deprecated. Remove use of deprecated classes within guacamole-ext.
This commit is contained in:
@@ -23,14 +23,27 @@
|
||||
package org.glyptodon.guacamole.properties;
|
||||
|
||||
import java.io.File;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* Abstract representation of the Guacamole configuration directory.
|
||||
*
|
||||
* @deprecated
|
||||
* @author Michael Jumper
|
||||
*/
|
||||
public class GuacamoleHome {
|
||||
|
||||
/**
|
||||
* Logger for this class.
|
||||
*/
|
||||
private static final Logger logger = LoggerFactory.getLogger(GuacamoleHome.class);
|
||||
|
||||
static {
|
||||
// Warn about deprecation
|
||||
logger.warn("GuacamoleHome is deprecated. Please use Environment instead.");
|
||||
}
|
||||
|
||||
/**
|
||||
* GuacamoleHome is a utility class and cannot be instantiated.
|
||||
*/
|
||||
|
@@ -29,6 +29,8 @@ import java.io.InputStream;
|
||||
import java.util.Properties;
|
||||
import org.glyptodon.guacamole.GuacamoleException;
|
||||
import org.glyptodon.guacamole.GuacamoleServerException;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* Simple utility class for reading properties from the guacamole.properties
|
||||
@@ -39,10 +41,21 @@ import org.glyptodon.guacamole.GuacamoleServerException;
|
||||
* If none of those locations are possible, guacamole.properties will also
|
||||
* be read from the root of the classpath.
|
||||
*
|
||||
* @deprecated
|
||||
* @author Michael Jumper
|
||||
*/
|
||||
public class GuacamoleProperties {
|
||||
|
||||
/**
|
||||
* Logger for this class.
|
||||
*/
|
||||
private static final Logger logger = LoggerFactory.getLogger(GuacamoleProperties.class);
|
||||
|
||||
static {
|
||||
// Warn about deprecation
|
||||
logger.warn("GuacamoleProperties is deprecated. Please use Environment instead.");
|
||||
}
|
||||
|
||||
/**
|
||||
* GuacamoleProperties is a utility class and cannot be instantiated.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user