|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.guice.GuiceComponentInjector
org.apache.wicket.guice.InjectionFlagCachingGuiceComponentInjector
public class InjectionFlagCachingGuiceComponentInjector
Finding the guice annotations via reflection for each Component instantiation is a rather
heavyweight operation (@link GuiceComponentInjector
.
This causes considerable overhead with large lists that have complicated component structure per
row, which is totally unnecessary for stock wicket components that do not contain any Guice
annotations.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wicket.guice.GuiceComponentInjector |
---|
GuiceComponentInjector.MoreThanOneBindingException |
Constructor Summary | |
---|---|
InjectionFlagCachingGuiceComponentInjector(Application app,
com.google.inject.Injector injector)
Construct. |
Method Summary | |
---|---|
void |
inject(java.lang.Object object)
|
void |
onInstantiation(Component component)
Called for every component that is instantiated. |
Methods inherited from class org.apache.wicket.guice.GuiceComponentInjector |
---|
findBindingAnnotation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InjectionFlagCachingGuiceComponentInjector(Application app, com.google.inject.Injector injector)
app
- injector
- Method Detail |
---|
public void inject(java.lang.Object object)
inject
in class GuiceComponentInjector
GuiceComponentInjector.inject(java.lang.Object)
public void onInstantiation(Component component)
IComponentInstantiationListener
onInstantiation
in interface IComponentInstantiationListener
onInstantiation
in class GuiceComponentInjector
component
- the component that is being instantiated.GuiceComponentInjector.onInstantiation(org.apache.wicket.Component)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |