javolution.lang

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Natural Language Processing
51.Net
52.Parser
53.PDF
54.Portal
55.Profiler
56.Project Management
57.Report
58.RSS RDF
59.Rule Engine
60.Science
61.Scripting
62.Search Engine
63.Security
64.Sevlet Container
65.Source Control
66.Swing Library
67.Template Engine
68.Test Coverage
69.Testing
70.UML
71.Web Crawler
72.Web Framework
73.Web Mail
74.Web Server
75.Web Services
76.Web Services apache cxf 2.2.6
77.Web Services AXIS2
78.Wiki Engine
79.Workflow Engines
80.XML
81.XML UI
Java Source Code / Java Documentation  » Development » Javolution » javolution.lang 
javolution.lang

Provides fundamental classes and interfaces; some of which are either missing from the java.lang package or are not available for all platforms (including J2ME CLDC).

Java Source File NameTypeComment
ClassInitializer.javaClass

This utility class allows for initialization of all classes at startup to avoid initialization delays at an innapropriate time.

Note: Users might want to disable logging when initializing run-time classes at start-up because of the presence of old classes (never used) in the jar files for which initialization fails.

Configurable.javaClass

This class facilitates separation of concerns between the configuration logic and the application code.

Does your class need to know or has to assume that the configuration is coming from system properties ??

The response is obviously NO!

Let's compare the following examples:[code] class Document { private static final Font DEFAULT_FONT = Font.decode(System.getProperty("DEFAULT_FONT") != null ? System.getProperty("DEFAULT_FONT") : "Arial-BOLD-18"); ... }[/code] With the following (using this class):[code] class Document { public static final Configurable DEFAULT_FONT = new Configurable(new Font("Arial", Font.BOLD, 18)); ... }[/code] Not only the second example is cleaner, but the actual configuration data can come from anywhere (even remotely).

Enum.javaClass
Immutable.javaInterface

This interface identifies classes whose instances are not subject or susceptible to change or variation after creation.

MathLib.javaClass

This utility class ensures cross-platform portability of the math library.

Realtime.javaInterface

This interface identifies RTSJ safe classes with predictable response time and supporting custom javolution.context.AllocatorContext allocation policies (e.g.  javolution.context.StackContext "stack" allocations).

Instances of this class are typically created through an javolution.context.ObjectFactory ObjectFactory .

Reference.javaInterface

This interface represents an object reference, the reachability level of a reference varies based on the actual reference implementation.

Reflection.javaClass

This utility class greatly facilitates the use of reflection to invoke constructors or methods which may or may not exist at runtime.

The constructors/methods are identified through their signatures represented as a String .

Reusable.javaInterface

This interfaces identifies mutable objects capable of being used again or repeatedly; once Reusable.reset reset , reusable objects behave as if they were brand-new.

Reusable instances should not allocate new internal objects after creation except for the purpose of increasing their internal capacities.

ValueType.javaInterface

This interface identifies objects which can be manipulated by value; a JVM implementation may allocate instances of this class on the stack and pass references by copy.

Realtime instances can be "explicitly" allocated on the "stack" by executing within a javolution.context.StackContext StackContext and creating new instances with an javolution.context.ObjectFactory ObjectFactory .

w__w__w.j__a_va___2s.___co_m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.