/** * This method gets the {@link ReflectionUtil}. * * @return the {@link ReflectionUtil}. */ public ReflectionUtil getReflectionUtil() { if (this.reflectionUtil == null) { this.reflectionUtil = ReflectionUtilImpl.getInstance(); } return this.reflectionUtil; }
@Override public String toString() { String upperBoundString = ReflectionUtilImpl.getInstance().toString(this.lowerBound); // "? super ".length == 8 StringBuilder result = new StringBuilder(upperBoundString.length() + 8); result.append(PREFIX); result.append(upperBoundString); return result.toString(); }
@Override protected void doInitialize() { super.doInitialize(); if (this.reflectionUtil == null) { this.reflectionUtil = (ReflectionUtilImpl) ReflectionUtilImpl.getInstance(); } }
@Override protected void doInitialize() { super.doInitialize(); if (this.reflectionUtil == null) { this.reflectionUtil = ReflectionUtilImpl.getInstance(); } }
@Override protected void doInitialize() { super.doInitialize(); if (this.reflectionUtil == null) { this.reflectionUtil = ReflectionUtilImpl.getInstance(); } }
/** * The constructor. * * @param name - see {@link #getName()}. * @param arguments is a specific argument list to create a signature from. */ public NamedSignature(String name, Object... arguments) { this(name, ReflectionUtilImpl.getInstance().getClasses(arguments)); }
@Override protected void doInitialize() { super.doInitialize(); if (this.reflectionUtil == null) { this.reflectionUtil = ReflectionUtilImpl.getInstance(); } }
/** * The constructor. * * @param arguments is a specific argument list to create a signature from. */ public Signature(Object... arguments) { this(ReflectionUtilImpl.getInstance().getClasses(arguments)); }
@Override public String toString() { String lowerBoundString = ReflectionUtilImpl.getInstance().toString(this.upperBound); // "? extends ".length == 10 StringBuilder result = new StringBuilder(lowerBoundString.length() + 10); result.append(PREFIX); result.append(lowerBoundString); return result.toString(); }
@Override public String toStringSimple() { return ReflectionUtilImpl.getInstance().toStringSimple(this); }
@Override public String toString() { StringBuilder result = new StringBuilder(); if (this.ownerType != null) { result.append(ReflectionUtilImpl.getInstance().toString(this.ownerType)); result.append('.'); // TODO: this is NOT as easy! result.append(this.rawType.getName()); } else { result.append(this.rawType.getName()); } if (this.actualTypeArguments.length > 0) { result.append('<'); for (int i = 0; i < this.actualTypeArguments.length; i++) { Type typeArgument = this.actualTypeArguments[i]; if (i > 0) { result.append(", "); } if (typeArgument instanceof Class<?>) { result.append(((Class<?>) typeArgument).getName()); } else { result.append(typeArgument.toString()); } } result.append('>'); } return result.toString(); }
@Override protected void doInitialize() { super.doInitialize(); if (this.reflectionUtil == null) { this.reflectionUtil = ReflectionUtilImpl.getInstance(); } if (this.collectionReflectionUtil == null) { this.collectionReflectionUtil = CollectionReflectionUtilImpl.getInstance(); } }
/** * This method gets the singleton instance of this {@link AnnotationUtilImpl}. <br> * <b>ATTENTION:</b><br> * Please prefer dependency-injection instead of using this method. * * @return the singleton instance. */ public static AnnotationUtilImpl getInstance() { if (instance == null) { synchronized (AnnotationUtilImpl.class) { if (instance == null) { AnnotationUtilImpl util = new AnnotationUtilImpl(); util.setReflectionUtil(ReflectionUtilImpl.getInstance()); instance = util; } } } return instance; }
@Override protected void doInitialize() { super.doInitialize(); if (this.reflectionUtil == null) { this.reflectionUtil = ReflectionUtilImpl.getInstance(); } if (getDefaultConverter() == null) { setDefaultConverter(DefaultComposedValueConverter.getInstance()); } if (this.converters == null) { ComposedValueConverter defaultConverter = getDefaultConverter(); if (defaultConverter instanceof ComposedValueConverterImpl) { setConverters(((ComposedValueConverterImpl) defaultConverter).getConverters()); } else { Objects.requireNonNull(this.converters, "converters"); } } }
@Override protected void doInitialize() { super.doInitialize(); if (this.descriptorBuilderFactory == null) { PojoDescriptorBuilderFactoryImpl factory = new PojoDescriptorBuilderFactoryImpl(); factory.initialize(); this.descriptorBuilderFactory = factory; } if (this.nlsMessageFactory == null) { this.nlsMessageFactory = NlsAccess.getFactory(); } if (this.converter == null) { this.converter = DefaultComposedValueConverter.getInstance(); } if (this.reflectionUtil == null) { this.reflectionUtil = ReflectionUtilImpl.getInstance(); } if (this.collectionReflectionUtil == null) { this.collectionReflectionUtil = CollectionReflectionUtilImpl.getInstance(); } if (this.collectionFactoryManager == null) { this.collectionFactoryManager = CollectionFactoryManagerImpl.getInstance(); } if (this.lineWrapper == null) { DefaultLineWrapper wrapper = new DefaultLineWrapper(); wrapper.initialize(); this.lineWrapper = wrapper; } }