Java component for generating objects