Refine search
private void addError(Message s, ClassMetaData cls) { if (errors == null) errors = new ArrayList(); errors.add(loc.get("subclasser-error-meta", s, cls.getDescribedType().getName(), cls.getSourceFile())); }
private void addError(Message s, ClassMetaData cls) { if (errors == null) errors = new ArrayList(); errors.add(loc.get("subclasser-error-meta", s, cls.getDescribedType().getName(), cls.getSourceFile())); }
private void addError(Message s, ClassMetaData cls) { if (errors == null) errors = new ArrayList(); errors.add(loc.get("subclasser-error-meta", s, cls.getDescribedType().getName(), cls.getSourceFile())); }
private void addError(Message s, ClassMetaData cls) { if (errors == null) errors = new ArrayList(); errors.add(loc.get("subclasser-error-meta", s, cls.getDescribedType().getName(), cls.getSourceFile())); }
private void addError(Message s, ClassMetaData cls) { if (errors == null) errors = new ArrayList(); errors.add(loc.get("subclasser-error-meta", s, cls.getDescribedType().getName(), cls.getSourceFile())); }
private void checkMethodIsSubclassable(Method meth, FieldMetaData fmd) { String className = fmd.getDefiningMetaData(). getDescribedType().getName(); if (!(Modifier.isProtected(meth.getModifiers()) || Modifier.isPublic(meth.getModifiers()))) addError(loc.get("subclasser-private-accessors-unsupported", className, meth.getName()), fmd); if (Modifier.isFinal(meth.getModifiers())) addError(loc.get("subclasser-final-methods-not-allowed", className, meth.getName()), fmd); if (Modifier.isNative(meth.getModifiers())) addContractViolation(loc.get ("subclasser-native-methods-not-allowed", className, meth.getName()), fmd); if (Modifier.isStatic(meth.getModifiers())) addError(loc.get("subclasser-static-methods-not-supported", className, meth.getName()), fmd); }
private void checkMethodIsSubclassable(Method meth, FieldMetaData fmd) { String className = fmd.getDefiningMetaData(). getDescribedType().getName(); if (!(Modifier.isProtected(meth.getModifiers()) || Modifier.isPublic(meth.getModifiers()))) addError(loc.get("subclasser-private-accessors-unsupported", className, meth.getName()), fmd); if (Modifier.isFinal(meth.getModifiers())) addError(loc.get("subclasser-final-methods-not-allowed", className, meth.getName()), fmd); if (Modifier.isNative(meth.getModifiers())) addContractViolation(loc.get ("subclasser-native-methods-not-allowed", className, meth.getName()), fmd); if (Modifier.isStatic(meth.getModifiers())) addError(loc.get("subclasser-static-methods-not-supported", className, meth.getName()), fmd); }
private void checkMethodIsSubclassable(Method meth, FieldMetaData fmd) { String className = fmd.getDefiningMetaData(). getDescribedType().getName(); if (!(Modifier.isProtected(meth.getModifiers()) || Modifier.isPublic(meth.getModifiers()))) addError(loc.get("subclasser-private-accessors-unsupported", className, meth.getName()), fmd); if (Modifier.isFinal(meth.getModifiers())) addError(loc.get("subclasser-final-methods-not-allowed", className, meth.getName()), fmd); if (Modifier.isNative(meth.getModifiers())) addContractViolation(loc.get ("subclasser-native-methods-not-allowed", className, meth.getName()), fmd); if (Modifier.isStatic(meth.getModifiers())) addError(loc.get("subclasser-static-methods-not-supported", className, meth.getName()), fmd); }
private void checkMethodIsSubclassable(Method meth, FieldMetaData fmd) { String className = fmd.getDefiningMetaData(). getDescribedType().getName(); if (!(Modifier.isProtected(meth.getModifiers()) || Modifier.isPublic(meth.getModifiers()))) addError(loc.get("subclasser-private-accessors-unsupported", className, meth.getName()), fmd); if (Modifier.isFinal(meth.getModifiers())) addError(loc.get("subclasser-final-methods-not-allowed", className, meth.getName()), fmd); if (Modifier.isNative(meth.getModifiers())) addContractViolation(loc.get ("subclasser-native-methods-not-allowed", className, meth.getName()), fmd); if (Modifier.isStatic(meth.getModifiers())) addError(loc.get("subclasser-static-methods-not-supported", className, meth.getName()), fmd); }
private void checkMethodIsSubclassable(Method meth, FieldMetaData fmd) { String className = fmd.getDefiningMetaData(). getDescribedType().getName(); if (!(Modifier.isProtected(meth.getModifiers()) || Modifier.isPublic(meth.getModifiers()))) addError(loc.get("subclasser-private-accessors-unsupported", className, meth.getName()), fmd); if (Modifier.isFinal(meth.getModifiers())) addError(loc.get("subclasser-final-methods-not-allowed", className, meth.getName()), fmd); if (Modifier.isNative(meth.getModifiers())) addContractViolation(loc.get ("subclasser-native-methods-not-allowed", className, meth.getName()), fmd); if (Modifier.isStatic(meth.getModifiers())) addError(loc.get("subclasser-static-methods-not-supported", className, meth.getName()), fmd); }
private void setInterfaceImplInternal(ClassMetaData meta, Class<?> impl) { if (!meta.isManagedInterface()) throw new MetaDataException(_loc.get("not-managed-interface", meta, impl)); _ifaces.put(meta.getDescribedType(), impl); addDeclaredInterfaceImpl(meta, meta.getDescribedType()); ClassMetaData sup = meta.getPCSuperclassMetaData(); while (sup != null) { // record superclass interface info while we can as well as we // will only register concrete superclass in PCRegistry sup.clearSubclassCache(); addToCollection(_subs, sup.getDescribedType(), impl, true); sup = (ClassMetaData) sup.getPCSuperclassMetaData(); } }
private void setInterfaceImplInternal(ClassMetaData meta, Class<?> impl) { if (!meta.isManagedInterface()) throw new MetaDataException(_loc.get("not-managed-interface", meta, impl)); _ifaces.put(meta.getDescribedType(), impl); addDeclaredInterfaceImpl(meta, meta.getDescribedType()); ClassMetaData sup = meta.getPCSuperclassMetaData(); while (sup != null) { // record superclass interface info while we can as well as we // will only register concrete superclass in PCRegistry sup.clearSubclassCache(); addToCollection(_subs, sup.getDescribedType(), impl, true); sup = (ClassMetaData) sup.getPCSuperclassMetaData(); } }
private void logNoSetter(ClassMetaData meta, String name, Exception e) { Log log = meta.getRepository().getConfiguration() .getLog(OpenJPAConfiguration.LOG_METADATA); if (log.isWarnEnabled()) log.warn(_loc.get("no-setter-for-getter", name, meta.getDescribedType().getName())); else if (log.isTraceEnabled()) // log the exception, if any, if we're in trace-level debugging log.warn(_loc.get("no-setter-for-getter", name, meta.getDescribedType().getName()), e); } }
private void setInterfaceImplInternal(ClassMetaData meta, Class<?> impl) { if (!meta.isManagedInterface()) throw new MetaDataException(_loc.get("not-managed-interface", meta, impl)); _ifaces.put(meta.getDescribedType(), impl); addDeclaredInterfaceImpl(meta, meta.getDescribedType()); ClassMetaData sup = meta.getPCSuperclassMetaData(); while (sup != null) { // record superclass interface info while we can as well as we // will only register concrete superclass in PCRegistry sup.clearSubclassCache(); addToCollection(_subs, sup.getDescribedType(), impl, true); sup = (ClassMetaData) sup.getPCSuperclassMetaData(); } }
private void logNoSetter(ClassMetaData meta, String name, Exception e) { Log log = meta.getRepository().getConfiguration() .getLog(OpenJPAConfiguration.LOG_METADATA); if (log.isWarnEnabled()) log.warn(_loc.get("no-setter-for-getter", name, meta.getDescribedType().getName())); else if (log.isTraceEnabled()) // log the exception, if any, if we're in trace-level debugging log.warn(_loc.get("no-setter-for-getter", name, meta.getDescribedType().getName()), e); }
private void logNoSetter(ClassMetaData meta, String name, Exception e) { Log log = meta.getRepository().getConfiguration() .getLog(OpenJPAConfiguration.LOG_METADATA); if (log.isWarnEnabled()) log.warn(_loc.get("no-setter-for-getter", name, meta.getDescribedType().getName())); else if (log.isTraceEnabled()) // log the exception, if any, if we're in trace-level debugging log.warn(_loc.get("no-setter-for-getter", name, meta.getDescribedType().getName()), e); }
private void setInterfaceImplInternal(ClassMetaData meta, Class<?> impl) { if (!meta.isManagedInterface()) throw new MetaDataException(_loc.get("not-managed-interface", meta, impl)); _ifaces.put(meta.getDescribedType(), impl); addDeclaredInterfaceImpl(meta, meta.getDescribedType()); ClassMetaData sup = meta.getPCSuperclassMetaData(); while (sup != null) { // record superclass interface info while we can as well as we // will only register concrete superclass in PCRegistry sup.clearSubclassCache(); addToCollection(_subs, sup.getDescribedType(), impl, true); sup = (ClassMetaData) sup.getPCSuperclassMetaData(); } }
private void logNoSetter(ClassMetaData meta, String name, Exception e) { Log log = meta.getRepository().getConfiguration() .getLog(OpenJPAConfiguration.LOG_METADATA); if (log.isWarnEnabled()) log.warn(_loc.get("no-setter-for-getter", name, meta.getDescribedType().getName())); else if (log.isTraceEnabled()) // log the exception, if any, if we're in trace-level debugging log.warn(_loc.get("no-setter-for-getter", name, meta.getDescribedType().getName()), e); }
private void logNoSetter(ClassMetaData meta, String name, Exception e) { Log log = meta.getRepository().getConfiguration() .getLog(OpenJPAConfiguration.LOG_METADATA); if (log.isWarnEnabled()) log.warn(_loc.get("no-setter-for-getter", name, meta.getDescribedType().getName())); else if (log.isTraceEnabled()) // log the exception, if any, if we're in trace-level debugging log.warn(_loc.get("no-setter-for-getter", name, meta.getDescribedType().getName()), e); }
/** * Set the implementation for the given managed interface. */ synchronized void setInterfaceImpl(ClassMetaData meta, Class impl) { if (!meta.isManagedInterface()) throw new MetaDataException(_loc.get("not-managed-interface", meta, impl)); _ifaces.put(meta.getDescribedType(), impl); addDeclaredInterfaceImpl(meta, meta.getDescribedType()); ClassMetaData sup = meta.getPCSuperclassMetaData(); while (sup != null) { // record superclass interface info while we can as well as we // will only register concrete superclass in PCRegistry sup.clearSubclassCache(); addToCollection(_subs, sup.getDescribedType(), impl, true); sup = (ClassMetaData) sup.getPCSuperclassMetaData(); } }