org.apache.tapestry.bean
Class LightweightBeanInitializer

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.bean.LightweightBeanInitializer
All Implemented Interfaces:
org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, IBeanInitializer

public class LightweightBeanInitializer
extends org.apache.hivemind.impl.BaseLocatable
implements IBeanInitializer

Performs "lightweight" initialization of a bean; this is based on a term (and code) from HiveMind, where the settings for a bean's properties are expressed as a single string.

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
LightweightBeanInitializer(String initializer)
           
 
Method Summary
 String getPropertyName()
          Returns the initializer itself, rather than any single property name.
 void setBeanProperty(IBeanProvider provider, Object bean)
          Invoked by the IBeanProvider to initialize a property of the bean.
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

LightweightBeanInitializer

public LightweightBeanInitializer(String initializer)
Method Detail

setBeanProperty

public void setBeanProperty(IBeanProvider provider,
                            Object bean)
Description copied from interface: IBeanInitializer
Invoked by the IBeanProvider to initialize a property of the bean.

Specified by:
setBeanProperty in interface IBeanInitializer

getPropertyName

public String getPropertyName()
Returns the initializer itself, rather than any single property name.

Specified by:
getPropertyName in interface IBeanInitializer


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.