private boolean isProxiableClass(final Injectable injectable) { final MetaClass type = injectable.getInjectedType(); return !type.isFinal() && hasAccessibleConstructor(injectable); }
private static boolean validateWildcard(MetaClass bindable) { if (bindable.isInterface()) { log.debug("@Bindable types cannot be an interface, ignoring: {}", bindable.getFullyQualifiedName()); return false; } else if (bindable.isAbstract()) { log.debug("@Bindable types cannot be abstract, ignoring: {}", bindable.getFullyQualifiedName()); return false; } else if (bindable.isFinal()) { log.debug("@Bindable types cannot be final, ignoring: {}", bindable.getFullyQualifiedName()); return false; } return true; } }
private static boolean validateWildcard(MetaClass bindable) { if (bindable.isInterface()) { log.debug("@Bindable types cannot be an interface, ignoring: {}", bindable.getFullyQualifiedName()); return false; } else if (bindable.isAbstract()) { log.debug("@Bindable types cannot be abstract, ignoring: {}", bindable.getFullyQualifiedName()); return false; } else if (bindable.isFinal()) { log.debug("@Bindable types cannot be final, ignoring: {}", bindable.getFullyQualifiedName()); return false; } return true; } }
if (!toProxy.isInterface()) { renderEqualsAndHash = true; if (toProxy.isFinal()) { throw new UnproxyableClassException(toProxy, toProxy.getFullyQualifiedName() + " is an unproxiable class because it is final");
if (!toProxy.isInterface()) { renderEqualsAndHash = true; if (toProxy.isFinal()) { throw new UnproxyableClassException(toProxy, toProxy.getFullyQualifiedName() + " is an unproxiable class because it is final");
buildMetaClass.setFinal(clazz.isFinal()); buildMetaClass.setStatic(clazz.isStatic()); buildMetaClass.setInterface(clazz.isInterface());
buildMetaClass.setFinal(clazz.isFinal()); buildMetaClass.setStatic(clazz.isStatic()); buildMetaClass.setInterface(clazz.isInterface());
if (bindable.isFinal()) { throw new RuntimeException("@Bindable type cannot be final: " + bindable.getFullyQualifiedName());
if (bindable.isFinal()) { throw new RuntimeException("@Bindable type cannot be final: " + bindable.getFullyQualifiedName());