public FastConstructor getConstructor(Class[] parameterTypes) { try { return getConstructor(type.getConstructor(parameterTypes)); } catch (NoSuchMethodException e) { throw new NoSuchMethodError(e.getMessage()); } }
public FastConstructor getConstructor(Class[] parameterTypes) { try { return getConstructor(type.getConstructor(parameterTypes)); } catch (NoSuchMethodException e) { throw new NoSuchMethodError(e.getMessage()); } }
static FastConstructor getFastConstructor(Class<?> beanType) { int mod = beanType.getModifiers(); assertTrue(!Modifier.isAbstract(mod) && Modifier.isPublic(mod), "Class to set properties should be public and concrete: %s", beanType.getName()); Constructor<?> constructor; try { constructor = beanType.getConstructor(); } catch (Exception e) { throw new IllegalArgumentException(String.format("Class to set properties has no default constructor: %s", beanType.getName())); } return FastClass.create(beanType).getConstructor(constructor); }
static FastConstructor getFastConstructor(Class<?> beanType) { int mod = beanType.getModifiers(); assertTrue(!Modifier.isAbstract(mod) && Modifier.isPublic(mod), "Class to set properties should be public and concrete: %s", beanType.getName()); Constructor<?> constructor; try { constructor = beanType.getConstructor(); } catch (Exception e) { throw new IllegalArgumentException(String.format("Class to set properties has no default constructor: %s", beanType.getName())); } return FastClass.create(beanType).getConstructor(constructor); }
public FastConstructor getConstructor(Class[] parameterTypes) { try { return getConstructor(type.getConstructor(parameterTypes)); } catch (NoSuchMethodException e) { throw new NoSuchMethodError(e.getMessage()); } }
public FastConstructor getConstructor(Class[] parameterTypes) { try { return getConstructor(type.getConstructor(parameterTypes)); } catch (NoSuchMethodException e) { throw new NoSuchMethodError(e.getMessage()); } }
public FastConstructor getConstructor(Class[] parameterTypes) { try { return getConstructor(type.getConstructor(parameterTypes)); } catch (NoSuchMethodException e) { throw new NoSuchMethodError(e.getMessage()); } }
private static net.sf.cglib.reflect.FastConstructor findFastCreatorInstance(Constructor constructor) { if (!CACHED_CONSTRUCTS.containsKey(constructor)) { Class classToConstruct = constructor.getDeclaringClass(); final net.sf.cglib.reflect.FastConstructor fastConstructor = newFastClass(classToConstruct) .getConstructor(constructor); CACHED_CONSTRUCTS.put(constructor, fastConstructor); return fastConstructor; } return CACHED_CONSTRUCTS.get(constructor); }
static FastConstructor getFastConstructor(Class<?> beanType) { int mod = beanType.getModifiers(); assertTrue(!Modifier.isAbstract(mod) && Modifier.isPublic(mod), "Class to set properties should be public and concrete: %s", beanType.getName()); Constructor<?> constructor; try { constructor = beanType.getConstructor(); } catch (Exception e) { throw new IllegalArgumentException(String.format("Class to set properties has no default constructor: %s", beanType.getName())); } return FastClass.create(beanType).getConstructor(constructor); }
this.serviceConstructor = FastClass.create(this.enhancedServiceClass).getConstructor(SERVICE_CONSTRUCTOR_TYPES);
serviceEndpointClass = enhanceServiceEndpointInterface(serviceEndpointBaseClass, classLoader); final Class[] constructorTypes = new Class[]{classLoader.loadClass(GenericServiceEndpoint.class.getName())}; this.constructor = FastClass.create(serviceEndpointClass).getConstructor(constructorTypes); this.handlerInfoChainFactory = new HandlerInfoChainFactory(handlerInfos); sortedOperationInfos = new OperationInfo[FastClass.create(serviceEndpointClass).getMaxIndex() + 1];