/** * Add a ComponentHandler with the specified componentType and rendererType, aliased by the tag name. The Facelet * will be compiled with the specified HandlerType (which must extend AbstractComponentHandler). * * @see AbstractComponentHandler * @param name * name to use, "foo" would be <my:foo /> * @param componentType * componentType to use * @param rendererType * rendererType to use * @param handlerType * a Class that extends AbstractComponentHandler */ protected final void addComponent(String name, String componentType, String rendererType, Class<? extends TagHandler> handlerType) { _factories.put(name, new UserComponentHandlerFactory(componentType, rendererType, handlerType)); }
/** * Add a ComponentHandler with the specified componentType and rendererType, aliased by the tag name. The Facelet * will be compiled with the specified HandlerType (which must extend AbstractComponentHandler). * * See AbstractComponentHandler * * @param name * name to use, "foo" would be <my:foo /> * @param componentType * componentType to use * @param rendererType * rendererType to use * @param handlerType * a Class that extends AbstractComponentHandler */ protected final void addComponent(String name, String componentType, String rendererType, Class<? extends TagHandler> handlerType) { _factories.put(name, new UserComponentHandlerFactory(componentType, rendererType, handlerType)); }
/** * Add a ComponentHandler with the specified componentType and rendererType, aliased by the tag name. The Facelet * will be compiled with the specified HandlerType (which must extend AbstractComponentHandler). * * @see AbstractComponentHandler * @param name * name to use, "foo" would be <my:foo /> * @param componentType * componentType to use * @param rendererType * rendererType to use * @param handlerType * a Class that extends AbstractComponentHandler */ protected final void addComponent(String name, String componentType, String rendererType, Class<? extends TagHandler> handlerType) { _factories.put(name, new UserComponentHandlerFactory(componentType, rendererType, handlerType)); }