01: package org.caramba.config;
02:
03: import org.apache.commons.logging.Log;
04: import org.apache.commons.logging.LogFactory;
05: import org.caramba.CarambaContext;
06: import org.caramba.CarambaException;
07: import org.caramba.components.Panel;
08:
09: /**
10: * A PageFactory that enables implicit component creation / Registration ( see the {@link ImplicitComponentRegistration}
11: * annotation.
12: *
13: * @author Pieter Degraeuwe
14: * @deprecated use {@link EnableImplicitComponentRegistrationPlugIn} instead
15: */
16: public class AnnotationPanelFactory extends DefaultPanelFactory {
17: private static final transient Log log = LogFactory
18: .getLog(AnnotationPanelFactory.class);
19:
20: public Panel createPanel(CarambaContext pContext,
21: PanelConfig pPageConfig) throws CarambaException {
22: Panel panel = super .createPanel(pContext, pPageConfig);
23: panel
24: .addListener(new EnableImplicitComponentRegistrationListener());
25: return panel;
26: }
27: }
|