01: /**
02: * Licensed under the Common Development and Distribution License,
03: * you may not use this file except in compliance with the License.
04: * You may obtain a copy of the License at
05: *
06: * http://www.sun.com/cddl/
07: *
08: * Unless required by applicable law or agreed to in writing, software
09: * distributed under the License is distributed on an "AS IS" BASIS,
10: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
11: * implied. See the License for the specific language governing
12: * permissions and limitations under the License.
13: */package com.sun.facelets.tag.ui;
14:
15: import com.sun.facelets.component.UIRepeat;
16: import com.sun.facelets.tag.AbstractTagLibrary;
17:
18: /**
19: * @author Jacob Hookom
20: * @version $Id: UILibrary.java,v 1.7 2006/03/29 04:10:08 jhook Exp $
21: */
22: public final class UILibrary extends AbstractTagLibrary {
23:
24: public final static String Namespace = "http://java.sun.com/jsf/facelets";
25:
26: public final static UILibrary Instance = new UILibrary();
27:
28: public UILibrary() {
29: super (Namespace);
30:
31: this .addTagHandler("include", IncludeHandler.class);
32:
33: this .addTagHandler("composition", CompositionHandler.class);
34:
35: this .addComponent("component", ComponentRef.COMPONENT_TYPE,
36: null, ComponentRefHandler.class);
37:
38: this .addComponent("fragment", ComponentRef.COMPONENT_TYPE,
39: null, ComponentRefHandler.class);
40:
41: this .addTagHandler("define", DefineHandler.class);
42:
43: this .addTagHandler("insert", InsertHandler.class);
44:
45: this .addTagHandler("param", ParamHandler.class);
46:
47: this .addTagHandler("decorate", DecorateHandler.class);
48:
49: this .addComponent("repeat", UIRepeat.COMPONENT_TYPE, null,
50: RepeatHandler.class);
51:
52: this .addComponent("debug", UIDebug.COMPONENT_TYPE, null);
53: }
54: }
|