Java Code Examples for net.bytebuddy.ByteBuddy#decorate()

The following examples show how to use net.bytebuddy.ByteBuddy#decorate() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EntryPoint.java    From byte-buddy with Apache License 2.0 5 votes vote down vote up
/** {@inheritDoc} */
public DynamicType.Builder<?> transform(TypeDescription typeDescription,
                                        ByteBuddy byteBuddy,
                                        ClassFileLocator classFileLocator,
                                        MethodNameTransformer methodNameTransformer) {
    return byteBuddy.decorate(typeDescription, classFileLocator);
}
 
Example 2
Source File: Plugin.java    From byte-buddy with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
public DynamicType.Builder<?> builder(ByteBuddy byteBuddy, TypeDescription typeDescription, ClassFileLocator classFileLocator) {
    return byteBuddy.decorate(typeDescription, classFileLocator);
}