@Override public String toString() { return classInfo.toString(); } }
@Override protected String fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) { ROOT_LOGGER.legacySecurityDomainAnnotationIsUsed(annotationInstance.target().asClass().toString()); return null; } }
private void validateArgumentType(final ClassInfo classInfo, final MethodInfo methodInfo) { final Type[] args = methodInfo.args(); switch (args.length) { case 0: throw EjbLogger.ROOT_LOGGER.aroundTimeoutMethodExpectedWithInvocationContextParam(methodInfo.name(), classInfo.toString()); case 1: if (!InvocationContext.class.getName().equals(args[0].name().toString())) { throw EjbLogger.ROOT_LOGGER.aroundTimeoutMethodExpectedWithInvocationContextParam(methodInfo.name(), classInfo.toString()); } break; default: throw EjbLogger.ROOT_LOGGER.aroundTimeoutMethodExpectedWithInvocationContextParam(methodInfo.name(), classInfo.toString()); } if (!methodInfo.returnType().name().toString().equals(Object.class.getName())) { throw EjbLogger.ROOT_LOGGER.aroundTimeoutMethodMustReturnObjectType(methodInfo.name(), classInfo.toString()); } } }
private void processClass(final DeploymentUnit deploymentUnit, final EJBResourceWrapper annotation, final ClassInfo classInfo, final EEModuleDescription eeModuleDescription) throws DeploymentUnitProcessingException { if (isEmpty(annotation.name())) { throw EjbLogger.ROOT_LOGGER.nameAttributeRequiredForEJBAnnotationOnClass(classInfo.toString()); } if (isEmpty(annotation.beanInterface())) { throw EjbLogger.ROOT_LOGGER.beanInterfaceAttributeRequiredForEJBAnnotationOnClass(classInfo.toString()); } process(deploymentUnit, annotation.beanInterface(), annotation.beanName(), annotation.lookup(), classInfo, null, annotation.name(), eeModuleDescription); }
servlet.setServletClass(classInfo.toString()); AnnotationValue nameValue = annotation.value("name"); if (nameValue == null || nameValue.asString().isEmpty()) { servlet.setName(classInfo.toString()); } else { servlet.setName(nameValue.asString()); filter.setFilterClass(classInfo.toString()); AnnotationValue nameValue = annotation.value("filterName"); if (nameValue == null || nameValue.asString().isEmpty()) { filter.setName(classInfo.toString()); } else { filter.setName(nameValue.asString()); listener.setListenerClass(classInfo.toString()); AnnotationValue descriptionValue = annotation.value(); if (descriptionValue != null) { AnnotationMetaData annotationMD = annotations.get(classInfo.toString()); if (annotationMD == null) { annotationMD = new AnnotationMetaData(); annotationMD.setClassName(classInfo.toString()); annotations.add(annotationMD); AnnotationMetaData annotationMD = annotations.get(classInfo.toString()); if (annotationMD == null) { annotationMD = new AnnotationMetaData(); annotationMD.setClassName(classInfo.toString()); annotations.add(annotationMD);
@Override public String toString() { return classInfo.toString(); } }
@Override public String toString() { return classInfo.toString(); } }
@Override public String toString() { return classInfo.toString(); } }
@Override public String toString() { return classInfo.toString(); } }
@Override public String toString() { return classInfo.toString(); } }
@Override public String signature() { return info.toString(); }
@Override public String toString() { return classInfo.toString(); } }
@Override public String toString() { return classInfo.toString(); } }
@Override public String toString() { return info.toString(); }
public static String getBindingKey(ClassInfo info) { StringBuilder sb = new StringBuilder(); sb.append('L'); sb.append(info.toString().replace('.', '/')); sb.append(';'); return sb.toString(); }
private void resolveEmbeddable(String attributeName, Class<?> type) { ClassInfo embeddableClassInfo = localBindingContext.getClassInfo( type.getName() ); if ( embeddableClassInfo == null ) { String msg = String.format( "Attribute '%s#%s' is annotated with @Embedded, but '%s' does not seem to be annotated " + "with @Embeddable. Are all annotated classes added to the configuration?", getConfiguredClass().getSimpleName(), attributeName, type.getSimpleName() ); throw new AnnotationException( msg ); } localBindingContext.resolveAllTypes( type.getName() ); EmbeddableHierarchy hierarchy = EmbeddableHierarchy.createEmbeddableHierarchy( localBindingContext.<Object>locateClassByName( embeddableClassInfo.toString() ), attributeName, classAccessType, localBindingContext ); embeddedClasses.put( attributeName, hierarchy.getLeaf() ); }
private void validateArgumentType(final ClassInfo classInfo, final MethodInfo methodInfo) { final Type[] args = methodInfo.args(); switch (args.length) { case 0: throw MESSAGES.aroundTimeoutMethodExpectedWithInvocationContextParam(methodInfo.name(), classInfo.toString()); case 1: if (!InvocationContext.class.getName().equals(args[0].name().toString())) { throw MESSAGES.aroundTimeoutMethodExpectedWithInvocationContextParam(methodInfo.name(), classInfo.toString()); } break; default: throw MESSAGES.aroundTimeoutMethodExpectedWithInvocationContextParam(methodInfo.name(), classInfo.toString()); } if (!methodInfo.returnType().name().toString().equals(Object.class.getName())) { throw MESSAGES.aroundTimeoutMethodMustReturnObjectType(methodInfo.name(), classInfo.toString()); } } }
private void processClass(final DeploymentUnit deploymentUnit, final EJBResourceWrapper annotation, final ClassInfo classInfo, final EEModuleDescription eeModuleDescription) throws DeploymentUnitProcessingException { if (isEmpty(annotation.name())) { throw MESSAGES.nameAttributeRequiredForEJBAnnotationOnClass(classInfo.toString()); } if (isEmpty(annotation.beanInterface())) { throw MESSAGES.beanInterfaceAttributeRequiredForEJBAnnotationOnClass(classInfo.toString()); } process(deploymentUnit, annotation.beanInterface(), annotation.beanName(), annotation.lookup(), classInfo, null, annotation.name(), eeModuleDescription); }
public ConfiguredClass( ClassInfo classInfo, AccessType defaultAccessType, ConfiguredClass parent, AnnotationBindingContext context) { this.parent = parent; this.classInfo = classInfo; this.clazz = context.locateClassByName( classInfo.toString() ); this.configuredClassType = determineType(); this.classAccessType = determineClassAccessType( defaultAccessType ); this.customTuplizer = determineCustomTuplizer(); this.simpleAttributeMap = new TreeMap<String, BasicAttribute>(); this.idAttributeMap = new TreeMap<String, BasicAttribute>(); this.associationAttributeMap = new TreeMap<String, AssociationAttribute>(); this.localBindingContext = new EntityBindingContext( context, this ); collectAttributes(); attributeOverrideMap = Collections.unmodifiableMap( findAttributeOverrides() ); }
public ConfiguredClass( ClassInfo classInfo, AccessType defaultAccessType, ConfiguredClass parent, AnnotationBindingContext context) { this.parent = parent; this.classInfo = classInfo; this.clazz = context.locateClassByName( classInfo.toString() ); this.configuredClassType = determineType(); this.classAccessType = determineClassAccessType( defaultAccessType ); this.customTuplizer = determineCustomTuplizer(); this.simpleAttributeMap = new TreeMap<String, BasicAttribute>(); this.idAttributeMap = new TreeMap<String, BasicAttribute>(); this.associationAttributeMap = new TreeMap<String, AssociationAttribute>(); this.localBindingContext = new EntityBindingContext( context, this ); collectAttributes(); attributeOverrideMap = Collections.unmodifiableMap( findAttributeOverrides() ); }