org.vraptor.component
Class ComponentConstructor

java.lang.Object
  extended by org.vraptor.component.ComponentConstructor
All Implemented Interfaces:
BeanConstructor

public class ComponentConstructor
extends Object
implements BeanConstructor

A component constructor. It allows users to instantiate a component type using an specific bean provider.

Author:
Guilherme Silveira

Method Summary
 Object newInstance(LogicRequest request, BeanProvider provider)
          Instantiates this component.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

newInstance

public Object newInstance(LogicRequest request,
                          BeanProvider provider)
                   throws ComponentInstantiationException
Description copied from interface: BeanConstructor
Instantiates this component.

Specified by:
newInstance in interface BeanConstructor
Parameters:
request - the request scope
Returns:
the new instance
Throws:
ComponentInstantiationException - any error

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2008 VRaptor. All Rights Reserved.