The Spring Framework

org.springframework.test.annotation
Interface ProfileValueSource

All Known Implementing Classes:
SystemProfileValueSource

public interface ProfileValueSource

Strategy interface for retrieving profile values for a given testing environment.

Spring provides the following out-of-the-box implementations:

Since:
2.0
Author:
Rod Johnson, Sam Brannen
See Also:
AbstractAnnotationAwareTransactionalTests

Method Summary
 String get(String key)
          Get the profile value indicated by the specified key.
 

Method Detail

get

String get(String key)
Get the profile value indicated by the specified key.

Parameters:
key - The name of the profile value.
Returns:
The string value of the profile value, or null if there is no profile value with that key
Throws:
IllegalArgumentException - if key is null or empty

The Spring Framework

Copyright © 2002-2007 The Spring Framework.