Top Inners Fields Constructors Methods
com.sun.tools.rngdatatype.helpers

public final Class ProxyDatatypeLibraryFactory

extends Object
implements DatatypeLibraryFactory
Class Inheritance
All Implemented Interfaces
com.sun.tools.rngdatatype.DatatypeLibraryFactory
Imports
com.sun.tools.rngdatatype.Datatype, .DatatypeBuilder, .DatatypeException, .DatatypeLibrary, .DatatypeLibraryFactory, .DatatypeStreamingValidator, .ValidationContext, java.lang.reflect.InvocationHandler, .Method, .Modifier, .Proxy, java.util.ArrayList, .Arrays, .List, .Map, .ServiceLoader, java.util.stream.Collectors

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public DatatypeLibrary
createDatatypeLibrary(String uri)

Implements com.sun.tools.rngdatatype.DatatypeLibraryFactory.createDatatypeLibrary.

Creates a new instance of a DatatypeLibrary that supports the specified namespace URI.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

RELAXNG_FACTORY_NAMEback to summary
private static final String RELAXNG_FACTORY_NAME

Constructor Detail

ProxyDatatypeLibraryFactoryback to summary
public ProxyDatatypeLibraryFactory()

Method Detail

createDatatypeLibraryback to summary
public DatatypeLibrary createDatatypeLibrary(String uri)

Implements com.sun.tools.rngdatatype.DatatypeLibraryFactory.createDatatypeLibrary.

Doc from com.sun.tools.rngdatatype.DatatypeLibraryFactory.createDatatypeLibrary.

Creates a new instance of a DatatypeLibrary that supports the specified namespace URI.

Annotations
@Override
com.sun.tools.rngdatatype.helpers back to summary

private Class ProxyDatatypeLibraryFactory.GIH

extends Object
implements InvocationHandler
Class Inheritance
  • java.lang.Object
  • com.sun.tools.rngdatatype.helpers.ProxyDatatypeLibraryFactory.GIH
All Implemented Interfaces
java.lang.reflect.InvocationHandler

Field Summary

Modifier and TypeField and Description
private final Map<String, Method>
private final Object

Constructor Summary

AccessConstructor and Description
pack-priv
GIH(Class<?> cls, Object obj)

Method Summary

Modifier and TypeMethod and Description
public Object
invoke(Object proxy, Method method, Object[] args)

Implements java.lang.reflect.InvocationHandler.invoke.

Processes a method invocation on a proxy instance and returns the result.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

methodsback to summary
private final Map<String, Method> methods
objback to summary
private final Object obj

Constructor Detail

GIHback to summary
pack-priv GIH(Class<?> cls, Object obj)

Method Detail

invokeback to summary
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable

Implements java.lang.reflect.InvocationHandler.invoke.

Doc from java.lang.reflect.InvocationHandler.invoke.

Processes a method invocation on a proxy instance and returns the result. This method will be invoked on an invocation handler when a method is invoked on a proxy instance that it is associated with.

Annotations
@Override
Exceptions
Throwable:
the exception to throw from the method invocation on the proxy instance. The exception's type must be assignable either to any of the exception types declared in the throws clause of the invoked method or to the unchecked exception types java.lang.RuntimeException or java.lang.Error. If a checked exception is thrown by this method that is not assignable to any of the exception types declared in the throws clause of the invoked method, then an UndeclaredThrowableException containing the exception that was thrown by this method will be thrown by the method invocation on the proxy instance.