|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.guice.GuiceInjectorHolder
public class GuiceInjectorHolder
This is a holder for the Injector. The reason we need a holder is that metadata only supports storing serializable objects but Injector is not. The holder acts as a serializable wrapper for the context. Notice that although holder implements IClusterable it really is not because it has a reference to non-serializable context - but this is ok because metadata objects in application are never serialized.
Field Summary | |
---|---|
static MetaDataKey |
INJECTOR_KEY
Metadata key used to store Injector holder in application's metadata |
Constructor Summary | |
---|---|
GuiceInjectorHolder(com.google.inject.Injector injector)
Constructor |
Method Summary | |
---|---|
com.google.inject.Injector |
getInjector()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static MetaDataKey INJECTOR_KEY
Constructor Detail |
---|
public GuiceInjectorHolder(com.google.inject.Injector injector)
injector
- Method Detail |
---|
public com.google.inject.Injector getInjector()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |