org.oddjob.arooa.types
Interface ValueFactory<T>

Type Parameters:
T - The type that the value will resolve to.
All Superinterfaces:
ArooaValue
All Known Implementing Classes:
AttachmentPart, BeanViewBean, ConnectionType, ExecutorThrottleType, HsqlConnectionType, LogoutType, MagicBeanType, MagicClassType, SimpleServerSecurity, StderrType, StdinType, StdoutType, TeeType, TextPart, URLClassLoaderType, UsernamePassword, VanillaInterfaceHandler, XMLConfigurationType

public interface ValueFactory<T>
extends ArooaValue

An interface for simple ArooaValues that only resolve to a thing of a single type.

Implementing this interface saves the new Type the trouble of needing to register a conversion.

Author:
rob

Nested Class Summary
static class ValueFactory.Conversions
           
 
Method Summary
 T toValue()
          Provide an instance of the type this is a factory for.
 

Method Detail

toValue

T toValue()
          throws ArooaConversionException
Provide an instance of the type this is a factory for.

Returns:
An instance of the type. May be null.
Throws:
ArooaConversionException - If unable to provide a value.