org.vraptor.plugin.jpa
Class EntityManagerInjector

java.lang.Object
  extended by org.vraptor.plugin.jpa.EntityManagerInjector
All Implemented Interfaces:
BeanConstructor

public class EntityManagerInjector
extends Object
implements BeanConstructor

Wraps the standard BeanConstructor injecting an EntityManager at the construction time.

Since:
2.3.2
Author:
Fabio Kung

Constructor Summary
EntityManagerInjector(BeanConstructor constructor, org.vraptor.plugin.jpa.EntityManagerIntrospector introspector)
           
 
Method Summary
 Object newInstance(LogicRequest request, BeanProvider provider)
          Instantiates this component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityManagerInjector

public EntityManagerInjector(BeanConstructor constructor,
                             org.vraptor.plugin.jpa.EntityManagerIntrospector introspector)
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


Copyright © 2004-2008 VRaptor. All Rights Reserved.