01: package org.vraptor.component;
02:
03: import org.vraptor.LogicRequest;
04: import org.vraptor.introspector.BeanProvider;
05:
06: /**
07: * A basic bean constructor.
08: *
09: * @author Guilherme Silveira
10: * @since 2.2.4
11: */
12: public interface BeanConstructor {
13:
14: /**
15: * Instantiates this component.
16: *
17: * @param request
18: * the request scope
19: * @return the new instance
20: * @throws ComponentInstantiationException
21: * any error
22: */
23: Object newInstance(LogicRequest request, BeanProvider provider)
24: throws ComponentInstantiationException;
25:
26: }
|