Package org.oddjob.values.types
Class MagicBeanType
java.lang.Object
org.oddjob.values.types.MagicBeanType
- All Implemented Interfaces:
ArooaValue,ArooaSessionAware,ValueFactory<Object>
Create an on the fly bean. Useful for testing. See also
MagicClassType and MagicBeanDescriptorFactory.- Author:
- rob
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.oddjob.arooa.types.ValueFactory
ValueFactory.Conversions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProperties(String name) voidsetArooaSession(ArooaSession session) Accept the current Arooa Session.voidsetMagicClass(ArooaClass magicClass) voidsetProperties(String name, ArooaValue value) toValue()Provide an instance of the type this is a factory for.
-
Constructor Details
-
MagicBeanType
public MagicBeanType()
-
-
Method Details
-
setArooaSession
Description copied from interface:ArooaSessionAwareAccept the current Arooa Session.- Specified by:
setArooaSessionin interfaceArooaSessionAware- Parameters:
session- The Arooa Session. Never null.
-
toValue
Description copied from interface:ValueFactoryProvide an instance of the type this is a factory for.- Specified by:
toValuein interfaceValueFactory<Object>- Returns:
- An instance of the type. May be null.
- Throws:
ArooaConversionException- If unable to provide a value.
-
getMagicClass
-
setMagicClass
-
setProperties
-
getProperties
-