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

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

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

Guice provider that creates an object by reading it from the repository and by using observation updates the object if the repository changes.

Version:
$Id$

Constructor Summary
GuiceObservedComponentProvider(String workspace, String path, Class<T> type)
           
 
Method Summary
 T get()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiceObservedComponentProvider

public GuiceObservedComponentProvider(String workspace,
                                      String path,
                                      Class<T> type)
Method Detail

get

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


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