Class BBClientProxyClassGenerator
java.lang.Object
org.microbean.clientproxy.bytebuddy.BBClientProxyClassGenerator
- Author:
- Laird Nelson
-
Constructor Summary
ConstructorsConstructorDescriptionBBClientProxyClassGenerator
(TypePool typePool) Creates a newBBClientProxyClassGenerator
. -
Method Summary
Modifier and TypeMethodDescriptionfinal DynamicType.Unloaded
<?> generate
(String name, TypeDefinition superclass, Collection<? extends TypeDefinition> interfaces) Creates and returns a newDynamicType.Unloaded
representing a client proxy class.
-
Constructor Details
-
BBClientProxyClassGenerator
Creates a newBBClientProxyClassGenerator
.- Parameters:
typePool
- aTypePool
(normally aTypeElementTypePool
); must not benull
- Throws:
NullPointerException
- iftypePool
isnull
-
-
Method Details
-
generate
public final DynamicType.Unloaded<?> generate(String name, TypeDefinition superclass, Collection<? extends TypeDefinition> interfaces) Creates and returns a newDynamicType.Unloaded
representing a client proxy class.- Parameters:
name
- the name of the client proxy class; must not benull
; must be a valid Java class binary namesuperclass
- aTypeDefinition
representing a superclass; must not benull
interfaces
- aCollection
ofTypeDefinition
s representing interfaces the client proxy class will implement; must not benull
- Returns:
- a new, non-
null
DynamicType.Unloaded
representing a client proxy class - Throws:
NullPointerException
- if any argument isnull
-