| org.picocontainer.behaviors.PropertyApplicator
PropertyApplicator | public class PropertyApplicator extends AbstractBehavior (Code) | | Decorating component adapter that can be used to set additional properties
on a component in a bean style. These properties must be managed manually
by the user of the API, and will not be managed by PicoContainer. This class
is therefore not the same as
SetterInjector ,
which is a true Setter Injection adapter.
This adapter is mostly handy for setting various primitive properties via setters;
it is also able to set javabean properties by discovering an appropriate
PropertyEditor and using its setAsText method.
Note that this class doesn't cache instances. If you want caching,
use a
Cached around this one.
author: Aslak Hellesøy author: Mauro Talevi |
convert | public static Object convert(String typeName, String value, ClassLoader classLoader)(Code) | | Converts a String value of a named type to an object.
Works with primitive wrappers, String, File, URL types, or any type that has
an appropriate
PropertyEditor .
Parameters: typeName - name of the type Parameters: value - its value Parameters: classLoader - used to load a class if typeName is "class" or "java.lang.Class" (ignored otherwise) instantiated object or null if the type was unknown/unsupported |
setProperties | public void setProperties(Map<String, String> properties)(Code) | | Sets the bean property values that should be set upon creation.
Parameters: properties - bean properties |
|
|