public <T> Optional<InterceptionFactoryData<T>> getInterceptionFactoryData(AnnotatedType<T> annotatedType) { Key key = new Key(AnnotatedTypes.createTypeId(annotatedType), annotatedType); try { return cache.getCastValue(key); } finally { key.cleanupAfterUse(); } }
public <T> Optional<InterceptionFactoryData<T>> getInterceptionFactoryData(AnnotatedType<T> annotatedType) { Key key = new Key(AnnotatedTypes.createTypeId(annotatedType), annotatedType); try { return cache.getCastValue(key); } finally { key.cleanupAfterUse(); } }
public <T> Optional<InterceptionFactoryData<T>> getInterceptionFactoryData(AnnotatedType<T> annotatedType) { Key key = new Key(AnnotatedTypes.createTypeId(annotatedType), annotatedType); try { return cache.getCastValue(key); } finally { key.cleanupAfterUse(); } }
/** * Generates a unique signature for an annotated type. Members without * annotations are omitted to reduce the length of the signature * * @param <X> * @param annotatedType * @return */ public static <X> String createTypeId(AnnotatedType<X> annotatedType) { return createTypeId(annotatedType.getJavaClass(), annotatedType.getAnnotations(), annotatedType.getMethods(), annotatedType.getFields(), annotatedType.getConstructors()); }
public <T> Optional<InterceptionFactoryData<T>> getInterceptionFactoryData(AnnotatedType<T> annotatedType) { Key key = new Key(AnnotatedTypes.createTypeId(annotatedType), annotatedType); try { return cache.getCastValue(key); } finally { key.cleanupAfterUse(); } }
public <T> Optional<InterceptionFactoryData<T>> getInterceptionFactoryData(AnnotatedType<T> annotatedType) { Key key = new Key(AnnotatedTypes.createTypeId(annotatedType), annotatedType); try { return cache.getCastValue(key); } finally { key.cleanupAfterUse(); } }
/** * Generates a unique signature for an annotated type. Members without * annotations are omitted to reduce the length of the signature * * @param <X> * @param annotatedType * @return hash of a signature for a concrete annotated type */ public static <X> String createTypeId(AnnotatedType<X> annotatedType) { String id = createTypeId(annotatedType.getJavaClass(), annotatedType.getAnnotations(), annotatedType.getMethods(), annotatedType.getFields(), annotatedType.getConstructors()); String hash = hash(id); MetadataLogger.LOG.tracef("Generated AnnotatedType id hash for %s: %s", id, hash); return hash; }
/** * Generates a unique signature for an annotated type. Members without * annotations are omitted to reduce the length of the signature * * @param <X> * @param annotatedType * @return hash of a signature for a concrete annotated type */ public static <X> String createTypeId(AnnotatedType<X> annotatedType) { String id = createTypeId(annotatedType.getJavaClass(), annotatedType.getAnnotations(), annotatedType.getMethods(), annotatedType.getFields(), annotatedType.getConstructors()); String hash = hash(id); MetadataLogger.LOG.tracef("Generated AnnotatedType id hash for %s: %s", id, hash); return hash; }
public <T> EnhancedAnnotatedType<T> getEnhancedAnnotatedType(AnnotatedType<T> annotatedType, String bdaId) { if (annotatedType instanceof EnhancedAnnotatedType<?>) { return cast(annotatedType); } if (annotatedType instanceof SlimAnnotatedType<?>) { return cast(getEnhancedAnnotatedType((SlimAnnotatedType<?>) annotatedType)); } return getEnhancedAnnotatedType(getUnbackedAnnotatedType(annotatedType, bdaId, AnnotatedTypes.createTypeId(annotatedType))); }
public <T> BeanDeployer addSyntheticClass(AnnotatedType<T> source, Extension extension, String suffix) { if (suffix == null) { suffix = AnnotatedTypes.createTypeId(source); } getEnvironment().addSyntheticAnnotatedType(classTransformer.getUnbackedAnnotatedType(source, getManager().getId(), suffix), extension); return this; }
public <T> BeanDeployer addSyntheticClass(AnnotatedType<T> source, Extension extension, String suffix) { if (suffix == null) { suffix = AnnotatedTypes.createTypeId(source); } getEnvironment().addSyntheticAnnotatedType(classTransformer.getUnbackedAnnotatedType(source, getManager().getId(), suffix), extension); return this; }
public <T> EnhancedAnnotatedType<T> getEnhancedAnnotatedType(AnnotatedType<T> annotatedType, String bdaId) { if (annotatedType instanceof EnhancedAnnotatedType<?>) { return cast(annotatedType); } if (annotatedType instanceof SlimAnnotatedType<?>) { return cast(getEnhancedAnnotatedType((SlimAnnotatedType<?>) annotatedType)); } return getEnhancedAnnotatedType(getUnbackedAnnotatedType(annotatedType, bdaId, AnnotatedTypes.createTypeId(annotatedType))); }
public <T> EnhancedAnnotatedType<T> getEnhancedAnnotatedType(AnnotatedType<T> annotatedType, String bdaId) { if (annotatedType instanceof EnhancedAnnotatedType<?>) { return cast(annotatedType); } if (annotatedType instanceof SlimAnnotatedType<?>) { return cast(getEnhancedAnnotatedType((SlimAnnotatedType<?>) annotatedType)); } return getEnhancedAnnotatedType(getUnbackedAnnotatedType(annotatedType, bdaId, AnnotatedTypes.createTypeId(annotatedType))); }
public <T> BeanDeployer addSyntheticClass(AnnotatedType<T> source, Extension extension, String suffix) { if (suffix == null) { suffix = AnnotatedTypes.createTypeId(source); } getEnvironment().addSyntheticAnnotatedType(classTransformer.getUnbackedAnnotatedType(source, getManager().getId(), suffix), extension); return this; }
public <T> EnhancedAnnotatedType<T> getEnhancedAnnotatedType(AnnotatedType<T> annotatedType, String bdaId) { if (annotatedType instanceof EnhancedAnnotatedType<?>) { return cast(annotatedType); } if (annotatedType instanceof SlimAnnotatedType<?>) { return cast(getEnhancedAnnotatedType((SlimAnnotatedType<?>) annotatedType)); } return getEnhancedAnnotatedType(getUnbackedAnnotatedType(annotatedType, bdaId, AnnotatedTypes.createTypeId(annotatedType))); }
public <T> BeanDeployer addSyntheticClass(AnnotatedType<T> source, Extension extension, String suffix) { if (suffix == null) { suffix = AnnotatedTypes.createTypeId(source); } getEnvironment().addSyntheticAnnotatedType(classTransformer.getUnbackedAnnotatedType(source, getManager().getId(), suffix), extension); return this; }
public <T> EnhancedAnnotatedType<T> getEnhancedAnnotatedType(AnnotatedType<T> annotatedType, String bdaId) { if (annotatedType instanceof EnhancedAnnotatedType<?>) { return cast(annotatedType); } if (annotatedType instanceof SlimAnnotatedType<?>) { return cast(getEnhancedAnnotatedType((SlimAnnotatedType<?>) annotatedType)); } return getEnhancedAnnotatedType(getUnbackedAnnotatedType(annotatedType, bdaId, AnnotatedTypes.createTypeId(annotatedType))); }
public <T> BeanDeployer addSyntheticClass(AnnotatedType<T> source, Extension extension, String suffix) { if (suffix == null) { suffix = AnnotatedTypes.createTypeId(source); } getEnvironment().addSyntheticAnnotatedType(classTransformer.getUnbackedAnnotatedType(source, getManager().getId(), suffix), extension); return this; }
public <T> BeanDeployer addSyntheticClass(AnnotatedType<T> source, Extension extension, String suffix) { if (suffix == null) { suffix = AnnotatedTypes.createTypeId(source); } getEnvironment().addSyntheticAnnotatedType(classTransformer.getUnbackedAnnotatedType(source, getManager().getId(), suffix), extension); return this; }
public <T> EnhancedAnnotatedType<T> getEnhancedAnnotatedType(AnnotatedType<T> annotatedType, String bdaId) { if (annotatedType instanceof EnhancedAnnotatedType<?>) { return cast(annotatedType); } if (annotatedType instanceof SlimAnnotatedType<?>) { return cast(getEnhancedAnnotatedType((SlimAnnotatedType<?>) annotatedType)); } return getEnhancedAnnotatedType(getUnbackedAnnotatedType(annotatedType, bdaId, AnnotatedTypes.createTypeId(annotatedType))); }