This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
places where Java Beans used?
Can anyone tell me what exactly "Java beans" is and why is it used?
Links
Wikipedia/JavaBean
java.sun.com - Developer - Online Training - Introducing Java Beans
I do not like the term java bean, it just causes confusion because every properly written java class is per definition a java bean, that is, using proper encapsulation rules and so on.
But take care, sometimes people who are saying java bean, mean enterprise java bean (EJB) which is are classes which derive from special classes in the java EE framework.
Related
This question already has answers here:
What is a software framework? [closed]
(12 answers)
Closed 3 years ago.
Can someone just show me an example of a code snippet that is meant for a framework (Spring or Guice) vs how it would be written in an ordinary form? It could be any framework for either C++ or Java
The C++ language doesn't make that distinction. A "framework" is often a library that provides a more-or-less coherent set of types, objects, and functions for solving a particular class of problems. For example, a GUI framework manages a graphical user interface; a Unit Testing framework supports unit testing, etc.
When you build a library you use a librarian to combine various object files together into a library file. When you build an application using that library you link to the library; the linker pulls in the various parts of the library that your program uses.
This question already has answers here:
What is the need of collection framework in java?
(10 answers)
Closed 7 years ago.
Actually I am learning Java and stuck on "Collection" . Can any body explain what does it mean by :-"Collection is a frame work" . I am a bit confused . Is it a pre-written programmes? is it a environment to build project. Kindly explain. Your help would be highly appreciable.
"Collection is a Framework" is incorrect, but you can see how someone would make that mistake.
Java has the Collections framework, which is a group of classes and interfaces provided by the JDK that handle collections of things like lists and maps and sets. They're in the java.util package (along with a bunch of other things that aren't part of the Collections framework).
More about the collections framework in this tutorial.
This question already has answers here:
Embedded Prolog Interpreter/Compiler for Java
(13 answers)
Closed 8 years ago.
I hope my question is not a duplicate... I have implemented some rules using Prolog. I would like to ask if there is any way to use these rules in a java application. I do not want to implement everything in java from scratch. I would like to embed the code written in Prolog in a java application. Thanks in advance.
There are various ways. But judging from your question you're looking for a quick solution.
JPL (since i notice a lot of people are using SWI nowadays):
http://www.swi-prolog.org/FAQ/Java.html
The GNU Prolog library for Java:
http://www.gnu.org/software/gnuprologjava/
SICtus (It comes with syntax examples, etc so it shouldn't be hard for you to use it quickly)
http://sicstus.sics.se/sicstus/docs/3.7.1/html/sicstus_12.html
tuProlog (Said to be the easiest to use, beginner friendly)
http://www.alice.unibo.it/xwiki/bin/view/Tuprolog/
This question already has answers here:
Adding Annotation Syntax to C++ Source
(2 answers)
Closed 10 years ago.
I'm a Java programmer and I'm learning c++ 11 which I like a lot. I really think it's great but I'm missing the notion of annotation in this language.
First, is there something close to Java style annotation in the standard ? I think there's not after my research.
What would be the closer, standard way (no compiler extensions), to "simulate" a Java style annotation in c++ ?
And please don't mention the c++ 11 override annotation. I mean user defined annotations.
There is nothing like annotations in standard C++. For alternatives, it depends on why you want to use annotations.
one of the use of annotations in Java is to mark some methods or classes with meta-data so it can be retrieved through reflection at runtime. But reflection in standard C++ is very limited, so there is nothing like that. I haven't had a look at boost::reflect, maybe it can be useful to you.
another use of annotations is to have tools that intervenes at compile time to inject some code or to do checks. The tool to do this kind of stuff in C++ is the preprocessor.
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Java : Is there a good natural language processing library
are there any known open source distributions that one can use like nltk for python?
GATE is the most famous industry-level librarywith a java implementation I can think of.
It is truly powerful.
Otherwise:
OpenNLP
LingPipe
Xerox used to have a set of nice online tools as well, but I don't know if they have a Java implementation or any accessible web-services for them.