Dependency injection basically allows us to create loosely coupled, reusable, and testable objects in your software designs by removing dependencies. We will take a look into the Object dependencies before digging in more. Consider a scenario of fetching an employee details and show display in UI. Let us say create a Business logic layer class [...]
Sunday, January 15th, 2012 »
Posted By Ranjan » Total 0 Comment
Delegates A delegate in C# is similar to a function pointer in C or C++. Using a delegate allows the programmer to encapsulate a reference to a method inside a delegate object. The delegate object can then be passed to code which can call the referenced method, without having to know at compile time which [...]
MIDP in general is one of the J2ME profile, a profile consists of Java classes. MIDP provides high-level API’s using which J2ME developer can easily develop applications, which is easy to use, highly graphical, with optimized for small computing devices such as Mobile phone. Also provides low-level user interface API’s giving the developers a control [...]
Keep your application Simple and Small. Limit the use of memory Avoid using object types. Always use minimum data type for storing data. Clean up the resources held by our program manually because even though garbage collector takes care of that we don’t know when it cleans up. Allocate an object immediately before the object [...]
The JABWT specification defines an optional J2ME package for Bluetooth wireless technology. What is it? The JABWT operates on top of the CLDC and is intended to extend the capabilities of profiles like the MIDP. JABWT use the Generic Connection Framework (GCF) defined in the CLDC specification for Bluetooth communication. What does it provide? JABWT [...]
A MIDlet is a Java program for embedded devices, more specifically the Java ME virtual machine. Generally, these are games and applications that run on a cell phone A MIDlet requires a device that implements Java ME, MIDP to run. Like other Java programs, MIDlets have a “compile once, run anywhere” potential. MIDlet distributions also consist [...]
MIDP doesn’t use filesystem to save application data; in turn it uses a non-volatile memory using a system called Record Management System The MIDP Record Management System (RMS) provides a means to store application data that persists across invocations of a MIDlet. You can visualize the RMS record store as a very simple database, where each [...]
J2ME Core Concepts: Configurations, Profile and Optional packages are 3 major concepts. Configurations: A configuration is a complete Java runtime environment, consisting of three things: A Java virtual machine (VM) to execute Java byte code. Native code to interface to the underlying system. A set of core Java runtime classes. To use a configuration, a device [...]
Saturday, January 14th, 2012 »
Posted By Ranjan » Total 0 Comment
Association “Association represents the static relationship shared among the objects of two classes. “So any relationship between object of two classes is called association. An association says there is some kind of dependency between the objects. It can either be a weak or Strong dependency. Consider an example of Teacher and Student classes. Multiple students [...]
Introduction AutoMapper is an object-object mapper. Object-object mapping works by transforming an input object of one type into an output object of a different type. When to use Automapper? Here is one Sample scenario. Assume we have a domain model say a Customer entity and we are planning to show a list of Customers in [...]
This is the one stop educational site for all Electronic and Computer students. If you want to learn something new then we are here to help. We work on Microcontroller projects, Basic Electronics, Digital electronics, Computer projects and also in basic c/c++ programs.
#Home #Sitemap #Resources #Terms of Use
Copyright©2012 electrofriends.com All Rights Reserved
Contact:info@electrofriends.com