/*
 * Copyright 2002 Tryllian BV and Otto Moerbeek
 * http://www.tryllian.com
 * otto@tryllian.com
 */

package net.drijf.javaone;

import java.security.BasicPermission;

/**
 * This class specifies the permission to load a class into the VM. It
 * extends <code>BasicPermission</code>, to allow for wilcard matching.
 *
 * @author Otto Moerbeek
 */
public class ClassLoadPermission extends BasicPermission
{
    /**
     * Construct a new instance allowing permission to load classes
     * specified by the argument.
     *
     * @param name the name of the class that is allowed classloading,
     * subject to wildcard matching as specified by
     * <code>BasicPermission</code>.
     * @see BasicPermission
     */
     public ClassLoadPermission(String name) {
        super(name);
    }

    /**
     * Construct a new instance allowing permission to load classes
     * specified by the argument.
     *
     * @param name the name of the class that is allowed classloading,
     * subject to wildcard matching as specified by
     * <code>BasicPermission</code>.
     * @param action ignored.
     * @see BasicPermission
     */
    public ClassLoadPermission(String name, String action) {
        super(name, action);
    }
}
