public static String formatInjectionPointType(Type type) { if (type instanceof Class<?>) { return ((Class<?>) type).getSimpleName(); } else { return Formats.formatType(type); } }
@Override public String toString() { return "Decorator [" + getBeanClass().toString() + "] decorates [" + Formats.formatTypes(getDecoratedTypes()) + "] with delegate type [" + Formats.formatType(getDelegateType()) + "] and delegate qualifiers [" + Formats.formatAnnotations(getDelegateQualifiers()) + "]"; } }
public static String formatInjectionPointType(Type type) { if (type instanceof Class<?>) { return ((Class<?>) type).getSimpleName(); } else { return Formats.formatType(type); } }
@Override public String toString() { return "Decorator [" + getBeanClass().toString() + "] decorates [" + Formats.formatTypes(getDecoratedTypes()) + "] with delegate type [" + Formats.formatType(getDelegateType()) + "] and delegate qualifiers [" + Formats.formatAnnotations(getDelegateQualifiers()) + "]"; } }
private static <D extends GenericDeclaration> String formatTypeVariable(TypeVariable<D> typeVariable, boolean simpleNames) { Type[] bounds = typeVariable.getBounds(); if (Reflections.isEmptyBoundArray(bounds)) { return typeVariable.getName(); } return typeVariable.getName() + UPPER_BOUND + formatType(bounds[0], simpleNames); }
@Override public String toString() { return "Decorator [" + getBeanClass().toString() + "] decorates [" + Formats.formatTypes(getDecoratedTypes()) + "] with delegate type [" + Formats.formatType(getDelegateType()) + "] and delegate qualifiers [" + Formats.formatAnnotations(getDelegateQualifiers()) + "]"; } }
private static <D extends GenericDeclaration> String formatTypeVariable(TypeVariable<D> typeVariable, boolean simpleNames) { Type[] bounds = typeVariable.getBounds(); if (Reflections.isEmptyBoundArray(bounds)) { return typeVariable.getName(); } return typeVariable.getName() + UPPER_BOUND + formatType(bounds[0], simpleNames); }
private static <D extends GenericDeclaration> String formatTypeVariable(TypeVariable<D> typeVariable, boolean simpleNames) { Type[] bounds = typeVariable.getBounds(); if (Reflections.isEmptyBoundArray(bounds)) { return typeVariable.getName(); } return typeVariable.getName() + UPPER_BOUND + formatType(bounds[0], simpleNames); }
/** * Gets a string representation * * @return A string representation */ @Override public String toString() { return Formats.formatAnnotations(getQualifiers()) + " Instance<" + Formats.formatType(getType()) + ">"; }
/** * Gets a string representation * * @return A string representation */ @Override public String toString() { return Formats.formatAnnotations(getQualifiers()) + " Event<" + Formats.formatType(getType()) + ">"; }
/** * Gets a string representation * * @return A string representation */ @Override public String toString() { return Formats.formatAnnotations(getQualifiers()) + " Event<" + Formats.formatType(getType()) + ">"; }
/** * Gets a string representation * * @return A string representation */ @Override public String toString() { return Formats.formatAnnotations(getQualifiers()) + " Event<" + Formats.formatType(getType()) + ">"; }
/** * Gets a string representation * * @return A string representation */ @Override public String toString() { return Formats.formatAnnotations(getQualifiers()) + " Event<" + Formats.formatType(getType()) + ">"; }
public void processInjectionTargets(@Observes ProcessInjectionTarget<?> event, BeanManager beanManager) { probe.getBootstrapStats().increment(EventType.PIT); if (eventMonitorContainerLifecycleEvents) { addContainerLifecycleEvent(event, Formats.formatType(event.getAnnotatedType().getBaseType(), false), beanManager); } }
public void processInjectionTargets(@Observes ProcessInjectionTarget<?> event, BeanManager beanManager) { probe.getBootstrapStats().increment(EventType.PIT); if (eventMonitorContainerLifecycleEvents) { addContainerLifecycleEvent(event, Formats.formatType(event.getAnnotatedType().getBaseType(), false), beanManager); } }
public void processInjectionTargets(@Observes ProcessInjectionTarget<?> event, BeanManager beanManager) { probe.getBootstrapStats().increment(EventType.PIT); if (eventMonitorContainerLifecycleEvents) { addContainerLifecycleEvent(event, Formats.formatType(event.getAnnotatedType().getBaseType(), false), beanManager); } }
public void processInjectionTargets(@Observes ProcessInjectionTarget<?> event, BeanManager beanManager) { probe.getBootstrapStats().increment(EventType.PIT); if (eventMonitorContainerLifecycleEvents) { addContainerLifecycleEvent(event, Formats.formatType(event.getAnnotatedType().getBaseType(), false), beanManager); } }
static JsonObjectBuilder createSimpleObserverJson(ObserverMethod<?> observerMethod, Probe probe) { JsonObjectBuilder observerBuilder = Json.objectBuilder(); observerBuilder.add(ID, probe.getObserverId(observerMethod)); observerBuilder.add(BEAN_CLASS, observerMethod.getBeanClass().getName()); observerBuilder.add(OBSERVED_TYPE, Formats.formatType(observerMethod.getObservedType(), false)); return observerBuilder; }
static JsonObjectBuilder createSimpleObserverJson(ObserverMethod<?> observerMethod, Probe probe) { JsonObjectBuilder observerBuilder = Json.objectBuilder(); observerBuilder.add(ID, probe.getObserverId(observerMethod)); observerBuilder.add(BEAN_CLASS, observerMethod.getBeanClass().getName()); observerBuilder.add(OBSERVED_TYPE, Formats.formatType(observerMethod.getObservedType(), false)); return observerBuilder; }
static JsonObjectBuilder createSimpleObserverJson(ObserverMethod<?> observerMethod, Probe probe) { JsonObjectBuilder observerBuilder = Json.objectBuilder(); observerBuilder.add(ID, probe.getObserverId(observerMethod)); observerBuilder.add(BEAN_CLASS, observerMethod.getBeanClass().getName()); observerBuilder.add(OBSERVED_TYPE, Formats.formatType(observerMethod.getObservedType(), false)); return observerBuilder; }