Top "Javabeans" questions

A javabean is a custom class which often represents real-world data and encapsulates private properties by public getter and setter methods.

Naming convention for getters/setters in Java

if I have the following private member: private int xIndex; How should I name my getter/setter: getXindex() setXindex(int …

java naming-conventions javabeans getter-setter
Why Java Beans have to be serializable?

Is it necessary that a Java Bean implements the Serializable interface?

java javabeans
Assert that two java beans are equivalent

This question is close, but still not what I want. I'd like to assert in a generic way that two …

java unit-testing assert javabeans equality
How to get the id of a bean from inside the bean in Spring?

What is the easiest way to retrieve a bean id from inside that bean (in the Java code) without using …

java spring javabeans
ArrayOutOfBoundsException on Bean creation while using Java 8 constructs

I am getting an ArrayIndexOutOfBoundsException on service start up (Bean creation) when i use Java 8 features. Java 8 has been set …

java spring java-8 javabeans indexoutofboundsexception
Bean Validation Groups - Understanding it correctly

I am trying to understand the Groups in Bean validation. So for instance if I have a bean and I …

java javabeans bean-validation
What can be the reasons that Spring STS hangs?

Sometimes on the start STS hangs. Does it possible found the reason? May be exists log or possible start in …

java spring eclipse javabeans spring-tool-suite
BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext

I have this web.xml file <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/…

java multithreading spring javabeans applicationcontext
Get bean property getter or setter by reflection?

Suppose I have a handle on an object of type , and I'm told by configuration that it has a bean …

java reflection javabeans
Performance of BeanUtils vs. ReflectionToStringBuilder (for use in Bean classes)

I have a large number of Java bean classes in my web application, and I am trying to find a …

java performance reflection javabeans apache-commons-beanutils