org.glassfish.jersey.internal.inject
Class ReferencingFactory<T>

java.lang.Object
  extended by org.glassfish.jersey.internal.inject.ReferencingFactory<T>
Type Parameters:
T -
All Implemented Interfaces:
org.glassfish.hk2.Factory<T>

public abstract class ReferencingFactory<T>
extends java.lang.Object
implements org.glassfish.hk2.Factory<T>

Factory that provides injection of the referenced instace.

Author:
Marek Potociar (marek.potociar at oracle.com)

Constructor Summary
ReferencingFactory(org.glassfish.hk2.Factory<Ref<T>> referenceFactory)
           
 
Method Summary
 T get()
           
static
<T> org.glassfish.hk2.Factory<Ref<T>>
referenceFactory()
           
static
<T> org.glassfish.hk2.Factory<Ref<T>>
referenceFactory(T initialValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferencingFactory

public ReferencingFactory(org.glassfish.hk2.Factory<Ref<T>> referenceFactory)
Method Detail

get

public T get()
      throws org.glassfish.hk2.ComponentException
Specified by:
get in interface org.glassfish.hk2.Factory<T>
Throws:
org.glassfish.hk2.ComponentException

referenceFactory

public static <T> org.glassfish.hk2.Factory<Ref<T>> referenceFactory()

referenceFactory

public static <T> org.glassfish.hk2.Factory<Ref<T>> referenceFactory(T initialValue)


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.