Class LoadedPermissionFactory

  • All Implemented Interfaces:
    PermissionFactory

    public final class LoadedPermissionFactory
    extends java.lang.Object
    implements PermissionFactory
    A permission factory which instantiates a permission with the given class name.
    Author:
    David M. Lloyd
    • Constructor Summary

      Constructors 
      Constructor Description
      LoadedPermissionFactory​(java.lang.ClassLoader classLoader, java.lang.String className, java.lang.String targetName, java.lang.String permissionActions)
      Construct a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.security.Permission construct()
      Construct a new instance of the permission.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LoadedPermissionFactory

        public LoadedPermissionFactory​(java.lang.ClassLoader classLoader,
                                       java.lang.String className,
                                       java.lang.String targetName,
                                       java.lang.String permissionActions)
        Construct a new instance.
        Parameters:
        classLoader - the class loader from which the permission should be loaded
        className - the name of the permission class
        targetName - the name to pass to the permission class constructor or null for none
        permissionActions - the action list to pass to the permission class constructor or null for none
    • Method Detail

      • construct

        public java.security.Permission construct()
        Description copied from interface: PermissionFactory
        Construct a new instance of the permission. The instance may be cached.
        Specified by:
        construct in interface PermissionFactory
        Returns:
        the permission