Kanzi  3.9.5
Java API
MetaclassRegistry Class Reference

A container class for Java metaclasses and proxies. More...

Public Member Functions

Iterable< String > iterateClasses ()
 Gets an Iterable object used to iterate over the names of registered classes and proxies. More...
 
void overrideClass (Class<?> clazz)
 Overrides a Java object class in runtime. More...
 
void registerClass (Class<?> clazz)
 Registers a new Java object class to runtime. More...
 
void registerProxy (Class<?> proxy)
 Associates Java class with a native metaclass in runtime. More...
 

Detailed Description

A container class for Java metaclasses and proxies.

Member Function Documentation

◆ iterateClasses()

Iterable<String> iterateClasses ( )

Gets an Iterable object used to iterate over the names of registered classes and proxies.

Returns
An iterable of String.

◆ overrideClass()

void overrideClass ( Class<?>  clazz)

Overrides a Java object class in runtime.

Parameters
clazzJava object class to override.
Exceptions
IllegalArgumentExceptionThrows a IllegalArgumentException when the metaclass has invalid state.

◆ registerClass()

void registerClass ( Class<?>  clazz)

Registers a new Java object class to runtime.

Parameters
clazzJava object class to register.
Exceptions
IllegalArgumentExceptionThrows a IllegalArgumentException when the metaclass has invalid state.

◆ registerProxy()

void registerProxy ( Class<?>  proxy)

Associates Java class with a native metaclass in runtime.

Parameters
proxyJava class to register in to runtime.