info.magnolia.objectfactory.guice
Class GuiceConfiguredComponentProvider<T>

java.lang.Object
  extended by info.magnolia.objectfactory.guice.GuiceConfiguredComponentProvider<T>
Type Parameters:
T - type of the instance the provider provides
All Implemented Interfaces:
javax.inject.Provider<T>

public class GuiceConfiguredComponentProvider<T>
extends Object
implements javax.inject.Provider<T>

Guice Provider that creates an object by reading it from the repository.

Version:
$Id$

Constructor Summary
GuiceConfiguredComponentProvider(String workspace, String path)
           
 
Method Summary
 T get()
           
protected  T transformNode(javax.jcr.Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiceConfiguredComponentProvider

public GuiceConfiguredComponentProvider(String workspace,
                                        String path)
Method Detail

get

public T get()
Specified by:
get in interface javax.inject.Provider<T>

transformNode

protected T transformNode(javax.jcr.Node node)
                   throws Content2BeanException
Throws:
Content2BeanException


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.