/** * This returns the constructors that have been declared for this * type. It is preferable to acquire the declared constructors * from this method as they are cached. Older versions of some * runtime environments, particularly Android, are slow at this. * * @return this returns the constructors associated with this */ public Constructor[] getConstructors() { return detail.getConstructors(); }
/** * This returns the constructors that have been declared for this * type. It is preferable to acquire the declared constructors * from this method as they are cached. Older versions of some * runtime environments, particularly Android, are slow at this. * * @return this returns the constructors associated with this */ public Constructor[] getConstructors() { return detail.getConstructors(); }
/** * This returns the constructors that have been declared for this * type. It is preferable to acquire the declared constructors * from this method as they are cached. Older versions of some * runtime environments, particularly Android, are slow at this. * * @return this returns the constructors associated with this */ public Constructor[] getConstructors() { return detail.getConstructors(); }
/** * This is used to scan the specified class for constructors that * can be used to instantiate the class. Only constructors that * have all parameters annotated will be considered. * * @param detail this is the class detail that is to be scanned */ private void scan(Detail detail) throws Exception { Constructor[] array = detail.getConstructors(); if(!detail.isInstantiable()) { throw new ConstructorException("Can not construct inner %s", detail); } for(Constructor factory: array){ if(!detail.isPrimitive()) { scan(factory); } } }
/** * This is used to scan the specified class for constructors that * can be used to instantiate the class. Only constructors that * have all parameters annotated will be considered. * * @param detail this is the class detail that is to be scanned */ private void scan(Detail detail) throws Exception { Constructor[] array = detail.getConstructors(); if(!detail.isInstantiable()) { throw new ConstructorException("Can not construct inner %s", detail); } for(Constructor factory: array){ if(!detail.isPrimitive()) { scan(factory); } } }
/** * This is used to scan the specified class for constructors that * can be used to instantiate the class. Only constructors that * have all parameters annotated will be considered. * * @param detail this is the class detail that is to be scanned */ private void scan(Detail detail) throws Exception { Constructor[] array = detail.getConstructors(); if(!detail.isInstantiable()) { throw new ConstructorException("Can not construct inner %s", detail); } for(Constructor factory: array){ if(!detail.isPrimitive()) { scan(factory); } } }