@Retention(value=RUNTIME) @Target(value=TYPE) public @interface Structural
| Modifier and Type | Optional Element and Description |
|---|---|
Class |
backingClass
Optional.
|
Class |
factoryClass
Optional.
|
public abstract Class factoryClass
backingClass and the structural interface to
proxy. The factory class must provide a public default constructor and must implement IProxyFactory.
Note the factory class is optional and exists primarily to address performance when the first time a type is cast
to a structural interface. If a factory class is not provided, Manifold dynamically generates and compiles
one at runtime, which entails a significant first-time performance hit. Thus a compile-time proxy factory provides
a way to eliminate this performance hit if and when needed.public abstract Class backingClass
factoryClass parameter.Copyright © 2019. All rights reserved.