KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openlaszlo > compiler > SecurityCompiler


1 /* ****************************************************************************
2  * SecurityCompiler.java
3 * ****************************************************************************/

4
5 /* J_LZ_COPYRIGHT_BEGIN *******************************************************
6 * Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
7 * Use is subject to license terms. *
8 * J_LZ_COPYRIGHT_END *********************************************************/

9
10 package org.openlaszlo.compiler;
11 import java.io.*;
12 import java.util.*;
13 import org.jdom.Element;
14 import org.openlaszlo.server.Configuration;
15
16 /** Represents a compiler for a toplevel <code>security</code> element. */
17 class SecurityCompiler extends ElementCompiler {
18     SecurityCompiler(CompilationEnvironment env) {
19         super(env);
20     }
21
22     static boolean isElement(Element element) {
23         return element.getName().equals("security");
24     }
25     
26     public void compile(Element element) {
27         mEnv.getCanvas().setSecurityOptions(element);
28     }
29 }
30
Popular Tags