java.lang.Object
org.apache.wicket.guice.GuiceInjectorHolder
- All Implemented Interfaces:
Serializable
,IClusterable
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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MetaDataKey<GuiceInjectorHolder>
Metadata key used to store Injector holder in application's metadata -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INJECTOR_KEY
Metadata key used to store Injector holder in application's metadata
-
-
Constructor Details
-
GuiceInjectorHolder
Constructor- Parameters:
injector
-
-
-
Method Details
-
getInjector
- Returns:
- the context
-