ClasspathPropertiesConfiguration Classe

  • java.lang.Object
    • com.microsoft.bot.integration.ClasspathPropertiesConfiguration

Implementazioni

public class ClasspathPropertiesConfiguration
implements Configuration

Fornisce l'accesso alle proprietà definite in un file Properties che si trova nel classpath.

Riepilogo dei costruttori

Costruttore Descrizione
ClasspathPropertiesConfiguration()

Carica le proprietà dall'applicazione.file delle proprietà.

Riepilogo dei metodi

Modificatore e tipo Metodo e descrizione
java.util.Properties getProperties()

Restituisce le proprietà nella configurazione.

java.lang.String[] getProperties(String key)

Restituisce una matrice di valori da una voce delimitata da virgole.

java.lang.String getProperty(String key)

Restituisce un valore per il nome della proprietà specificato.

Metodi ereditati da java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Dettagli costruttore

ClasspathPropertiesConfiguration

public ClasspathPropertiesConfiguration()

Carica le proprietà dal file 'application.properties'.

Dettagli metodo

getProperties

public Properties getProperties()

Restituisce le proprietà nella configurazione.

Restituisce:

Valore Properties.

getProperties

public String[] getProperties(String key)

Restituisce una matrice di valori da una voce delimitata da virgole.

Parametri:

key - Nome della proprietà.

Restituisce:

Valori della proprietà come matrice String.

getProperty

public String getProperty(String key)

Restituisce un valore per il nome della proprietà specificato.

Parametri:

key - Nome della proprietà.

Restituisce:

Valore della proprietà.

Si applica a