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.Unloadedrepresenting a client proxy class.
-
Constructor Details
-
BBClientProxyClassGenerator
Creates a newBBClientProxyClassGenerator.- Parameters:
typePool- aTypePool(normally aTypeElementTypePool); must not benull- Throws:
NullPointerException- iftypePoolisnull
-
-
Method Details
-
generate
public final DynamicType.Unloaded<?> generate(String name, TypeDefinition superclass, Collection<? extends TypeDefinition> interfaces) Creates and returns a newDynamicType.Unloadedrepresenting a client proxy class.- Parameters:
name- the name of the client proxy class; must not benull; must be a valid Java class binary namesuperclass- aTypeDefinitionrepresenting a superclass; must not benullinterfaces- aCollectionofTypeDefinitions representing interfaces the client proxy class will implement; must not benull- Returns:
- a new, non-
nullDynamicType.Unloadedrepresenting a client proxy class - Throws:
NullPointerException- if any argument isnull
-