Top Description Fields Constructors Methods
org.hibernate.validator.internal.util.privilegedactions

public final Class NewSchema

extends Object
implements PrivilegedExceptionAction<Schema>
Class Inheritance
All Implemented Interfaces
java.security.PrivilegedExceptionAction
Imports
java.net.URL, java.security.PrivilegedExceptionAction, javax.xml.validation.Schema, .SchemaFactory, org.xml.sax.SAXException

Loads a given XML schema.
Author
Gunnar Morling

Field Summary

Modifier and TypeField and Description
private final SchemaFactory
private final URL

Constructor Summary

AccessConstructor and Description
public
NewSchema(SchemaFactory schemaFactory, URL url)

Method Summary

Modifier and TypeMethod and Description
public static NewSchema
action(SchemaFactory schemaFactory, URL url)

public Schema
run()

Implements java.security.PrivilegedExceptionAction.run.

Performs the computation.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

schemaFactoryback to summary
private final SchemaFactory schemaFactory
urlback to summary
private final URL url

Constructor Detail

NewSchemaback to summary
public NewSchema(SchemaFactory schemaFactory, URL url)

Method Detail

actionback to summary
public static NewSchema action(SchemaFactory schemaFactory, URL url)
runback to summary
public Schema run() throws SAXException

Implements java.security.PrivilegedExceptionAction.run.

Doc from java.security.PrivilegedExceptionAction.run.

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

Returns:Schema

a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedExceptionAction should document what (if anything) this value represents.

Annotations
@Override