public class BeanEmbed
extends java.lang.Object
ResinEmbed resin = new ResinEmbed();
WebAppEmbed webApp = new WebAppEmbed("/foo", "/var/resin/foo");
MyBean myBean = new MyBean();
BeanEmbed bean = new BeanEmbed(myBean);
webApp.addBean(bean);
resin.addWebApp(webApp);
Constructor and Description |
---|
BeanEmbed()
Creates a new embedded bean
|
BeanEmbed(java.lang.Object value)
Creates a new embedded bean with a singleton value
|
BeanEmbed(java.lang.Object value,
java.lang.String name)
Creates a new embedded bean with a singleton value
|
BeanEmbed(java.lang.String className)
Creates a new embedded bean with a given classname
|
BeanEmbed(java.lang.String className,
java.lang.String name)
Creates a new embedded bean with a given classname and name
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(java.lang.String name,
java.lang.Object value)
Adds a property.
|
protected void |
configure()
Configures the bean (for internal use)
|
void |
setClass(java.lang.String className)
Sets the bean's classname
|
void |
setName(java.lang.String name)
Sets the bean's name
|
void |
setValue(java.lang.Object value)
Sets the bean value.
|
void |
validate()
validates the bean
|
public BeanEmbed()
public BeanEmbed(java.lang.Object value)
public BeanEmbed(java.lang.Object value, java.lang.String name)
public BeanEmbed(java.lang.String className)
public BeanEmbed(java.lang.String className, java.lang.String name)
public void setClass(java.lang.String className)
public void setName(java.lang.String name)
public void setValue(java.lang.Object value)
public void addProperty(java.lang.String name, java.lang.Object value)
public void validate()
protected void configure()