Package org.eclipse.sisu.space
Class LoadedClass<T>
- java.lang.Object
-
- org.eclipse.sisu.space.LoadedClass<T>
-
- All Implemented Interfaces:
com.google.inject.Provider<T>
,javax.inject.Provider<T>
,DeferredClass<T>
,DeferredProvider<T>
public final class LoadedClass<T> extends Object
PseudoDeferredClass
backed by an already loadedClass
.
-
-
Constructor Summary
Constructors Constructor Description LoadedClass(Class<? extends T> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeferredProvider<T>
asProvider()
Returns a provider based on the deferred class.boolean
equals(Object rhs)
T
get()
DeferredClass<T>
getImplementationClass()
String
getName()
Returns the name of the deferred class.int
hashCode()
Class<T>
load()
Retrieves the class, for example from a cache or a class loader.String
toString()
-
-
-
Method Detail
-
load
public Class<T> load()
Description copied from interface:DeferredClass
Retrieves the class, for example from a cache or a class loader.- Returns:
- Class instance
-
getName
public String getName()
Description copied from interface:DeferredClass
Returns the name of the deferred class.- Returns:
- Class name
-
asProvider
public final DeferredProvider<T> asProvider()
Description copied from interface:DeferredClass
Returns a provider based on the deferred class.- Specified by:
asProvider
in interfaceDeferredClass<T>
- Returns:
- Deferred provider
-
get
public final T get()
- Specified by:
get
in interfacecom.google.inject.Provider<T>
- Specified by:
get
in interfacejavax.inject.Provider<T>
-
getImplementationClass
public final DeferredClass<T> getImplementationClass()
- Specified by:
getImplementationClass
in interfaceDeferredProvider<T>
- Returns:
- Deferred implementation class
-
-