protected void addMethods(ClassFile proxyClassType, ClassMethod staticConstructor) { // Add all class methods for interception addMethodsFromClass(proxyClassType, staticConstructor); // Add special proxy methods addSpecialMethods(proxyClassType, staticConstructor); // Add serialization support methods addSerializationSupport(proxyClassType); }
protected void addMethods(ClassFile proxyClassType, ClassMethod staticConstructor) { // Add all class methods for interception addMethodsFromClass(proxyClassType, staticConstructor); // Add special proxy methods addSpecialMethods(proxyClassType, staticConstructor); // Add serialization support methods addSerializationSupport(proxyClassType); }
protected void addMethods(ClassFile proxyClassType, ClassMethod staticConstructor) { // Add all class methods for interception addMethodsFromClass(proxyClassType, staticConstructor); // Add special proxy methods addSpecialMethods(proxyClassType, staticConstructor); // Add serialization support methods addSerializationSupport(proxyClassType); }
protected void addMethods(ClassFile proxyClassType, ClassMethod staticConstructor) { // Add all class methods for interception addMethodsFromClass(proxyClassType, staticConstructor); // Add special proxy methods addSpecialMethods(proxyClassType, staticConstructor); // Add serialization support methods addSerializationSupport(proxyClassType); }
protected void addMethods(ClassFile proxyClassType, ClassMethod staticConstructor) { // Add all class methods for interception addMethodsFromClass(proxyClassType, staticConstructor); // Add special proxy methods addSpecialMethods(proxyClassType, staticConstructor); // Add serialization support methods addSerializationSupport(proxyClassType); }
protected void addMethods(ClassFile proxyClassType, ClassMethod staticConstructor) { // Add all class methods for interception addMethodsFromClass(proxyClassType, staticConstructor); // Add special proxy methods addSpecialMethods(proxyClassType, staticConstructor); // Add serialization support methods addSerializationSupport(proxyClassType); }
@Override protected void addSpecialMethods(ClassFile proxyClassType, ClassMethod staticConstructor) { super.addSpecialMethods(proxyClassType, staticConstructor); // Add methods for the EnterpriseBeanInstance interface try { proxyClassType.addInterface(EnterpriseBeanInstance.class.getName()); for (Method method : EnterpriseBeanInstance.class.getMethods()) { BeanLogger.LOG.addingMethodToEnterpriseProxy(method); MethodInformation methodInfo = new RuntimeMethodInformation(method); createInterceptorBody(proxyClassType.addMethod(method), methodInfo, staticConstructor); } } catch (Exception e) { throw new WeldException(e); } }
@Override protected void addSpecialMethods(ClassFile proxyClassType, ClassMethod staticConstructor) { super.addSpecialMethods(proxyClassType, staticConstructor); // Add methods for the EnterpriseBeanInstance interface try { proxyClassType.addInterface(EnterpriseBeanInstance.class.getName()); for (Method method : EnterpriseBeanInstance.class.getMethods()) { BeanLogger.LOG.addingMethodToEnterpriseProxy(method); MethodInformation methodInfo = new RuntimeMethodInformation(method); createInterceptorBody(proxyClassType.addMethod(method), methodInfo, staticConstructor); } } catch (Exception e) { throw new WeldException(e); } }