hudson.plugins.filesfoundtrigger.xstream
Interface DefaultProvider<T>

Type Parameters:
T - the type of values supported by this provider
All Known Implementing Classes:
DefaultProvider.EmptyString

public interface DefaultProvider<T>

Provides default values for fields marked with the XStreamDefault annotation.

Author:
Steven G. Brown

Nested Class Summary
static class DefaultProvider.EmptyString
          Implementation of DefaultProvider that allows fields to default to an empty string.
 
Method Summary
 T getDefault(java.lang.String name, java.lang.Class<?> type, java.lang.Class<?> definedIn)
          Get a default value.
 java.lang.Class<T> getSupportedType()
          Get the type of values supported by this provider.
 

Method Detail

getDefault

T getDefault(java.lang.String name,
             java.lang.Class<?> type,
             java.lang.Class<?> definedIn)
Get a default value.

Parameters:
name - the field name
type - the field type
definedIn - the class in which the field is defined
Returns:
the default value

getSupportedType

java.lang.Class<T> getSupportedType()
Get the type of values supported by this provider.

Returns:
the supported type


Copyright © 2010. All Rights Reserved.