| Home >> All >> org >> jboss >> [ util Javadoc ] |
Page 1 2
org.jboss.util: Javadoc index of package org.jboss.util.
Package Samples:
org.jboss.util.property.jmx: An advanced property access, managment and notification system.
org.jboss.util.coerce: Utility classes and interfaces.
org.jboss.util.collection: Utility classes and interfaces.
org.jboss.util.file: Utility classes and interfaces.
org.jboss.util.jmx: Utility classes and interfaces.
org.jboss.util.platform: Utility classes and interfaces.
org.jboss.util.propertyeditor: Utility classes and interfaces.
org.jboss.util.id
org.jboss.util.property
org.jboss.util.deadlock
org.jboss.util.loading
Classes:
MIME2Java: MIME2Java is a convenience class which handles conversions between MIME charset names and Java encoding names. The supported XML encodings are the intersection of XML-supported code sets and those supported in JDK 1.1. MIME charset names are used on xmlEncoding parameters to methods such as TXDocument#setEncoding and DTD#setEncoding . Java encoding names are used on encoding parameters to methods such as TXDocument#printWithFormat and DTD#printExternal . Common Name Use this name in XML files Name Type Xerces converts to this Java Encoder Name 8 bit Unicode UTF-8 IANA UTF8 ISO Latin 1 ISO-8859-1 ...
StateMachine: A generalization of a programmable finite-state machine (with a twist). A state machine is backed up by a StateMachine.Model which simply provides data encapsulation. The machine starts in the initial state, which must not be null. Care must be taken to ensure that the machine state is not corrupted due to invalid modifications of the model. Best to leave the model alone once the machine has been created. Provides change notification via StateMachine.ChangeListener objects. When a listener throws an exception it will not corrupt the state machine; it may however corrupt any application state which ...
BoundPropertyListener: The listener interface for receiving bound property events (as well as property events). Classes that are interested in processing a bound property event implement this interface, and register instance objects with a given PropertyMap or via PropertyManager.addPropertyListener(PropertyListener) 55 . Note that this is not the typical listener interface, as it extends from PropertyListener , and defines getPropertyName() 55 which is not an event triggered method. This method serves to instruct the PropertyMap the listener is registered with, which property it will bind to.
UID: A unique identifier (uniqueness only guarantied inside of the virtual machine in which it was created). The identifier is composed of: A long generated from the current system time (in milliseconds). A long generated from a counter (which is the number of UID objects that have been created durring the life of the executing virtual machine). [ time ] - [ counter ] Numbers are converted to radix(Character.MAX_RADIX) when converting to strings. This should provide adequate uniqueness for most purposes.
Java: Provides common access to specifics about the version of Java that a virtual machine supports. Determines the version of the Java Virtual Machine by checking for the availablity of version specific classes. Classes are loaded in the following order: java.lang.StackTraceElement was introduced in JDK 1.4 java.lang.StrictMath was introduced in JDK 1.3 java.lang.ThreadLocal was introduced in JDK 1.2 java.lang.Void was introduced in JDK 1.1
VMID: An object that uniquely identifies a virtual machine. The identifier is composed of: The Internet address of the physical machine. The process identifier of the virtual machine. A UID to guarantee uniqness across multipule virtual machines on the same physical machine. [ address ] - [ process id ] - [ time ] - [ counter ] |------- UID --------| Numbers are converted to radix(Character.MAX_RADIX) when converting to strings.
TimedCachePolicy: An implementation of a timed cache. This is a cache whose entries have a limited lifetime with the ability to refresh their lifetime. The entries managed by the cache implement the TimedCachePolicy.TimedEntry interface. If an object inserted into the cache does not implement this interface, it will be wrapped in a DefaultTimedEntry and will expire without the possibility of refresh after getDefaultLifetime() seconds. This is a lazy cache policy in that objects are not checked for expiration until they are accessed.
ObjectNameConverter: Converts forbidden characters in the key and value of an object name to valid characters and back. Character Conversion Table: (based on RFC 1738 style escapes '%' => '%25' '*' => '%2a' ',' => '%2c' ':' => '%3a' '?' => '%3f' '=' => '%3d' Thanx to William Hoyle for mention this Attention: When you have a comma in one of your property value then you have to use a Hashtable to provide the properties otherwise the property parsing will fail.
State: Provides the basic interface for states (both accepting, acceptable and final) of a state machine. Each state is immutable and has a name and integer value. States are considered equivilent if the integer values equal. Note that the second opperand is an annonymous class, changing its equivilence from a vanilla Type instance. State objects also can contain an optional opaque object. This is provided for applications to make use of the state machine for managing data assocciated with the state.
NullOutputStream: A null OutputStream . All values passed to write(int) 55 are discarded. Calls to flush() 55 and close() 55 are ignored. All methods are declared NOT to throw IOException s.
CoercionHandler: An abstract class to allow extending the default behavior of Objects.coerce(Object,Class) > Objects.coerce(Object,Class) 55 when it is not possible to implement org.jboss.util.Coercible directly in the target class or where coercion is desired from an unrelated class. Also provides a registry for all of the currently installed handlers.
GUID: A globally unique identifier (globally across a cluster of virtual machines). The identifier is composed of: The VMID for the virtual machine. A UID to provide uniqueness over a VMID. [ address ] - [ process id ] - [ time ] - [ counter ] - [ time ] - [ counter ] |------- UID --------| |------- UID --------| |---------------------- VMID -----------------------|
ContextClassLoaderSwitcher: A helper for context classloading switching. When a security manager is installed, the constructor checks for the runtime permissions "getClassLoader" and "setContextClassLoader". This allows the methods of this class to be used later without having to run in privileged blocks. There are optimized methods to perform the operations within a switch context. This avoids retrieving the current thread on every operation.
TimeoutFactory: The timeout factory. This is written with performance in mind. In case of n active timeouts, creating, cancelling and firing timeouts all operate in time O(log(n)) . If a timeout is cancelled, the timeout is not discarded. Instead the timeout is saved to be reused for another timeout. This means that if no timeouts are fired, this class will eventually operate without allocating anything on the heap.
Null: A class that represents null . VALUE 55 is used to given an object variable a dual-mode nullified value, where null would indicate that the value is empty, and VALUE 55 would idicate that the value has been set to null (or something to that effect).
ApplicationDeadlockException: This exception class is thrown when application deadlock is detected when trying to lock an entity bean This is probably NOT a result of a jboss bug, but rather that the application is access the same entity beans within 2 different transaction in a different order. Remember, with a PessimisticEJBLock, Entity beans are locked until the transaction commits or is rolled back.
MBeanProxy: A factory for producing MBean proxies. Created proxies will also implement MBeanProxyInstance allowing access to the proxies configuration. Revisions: 20020321 Adrian Brock: Don't process attributes using invoke.
WeakSet: A Set implementation with weak elements . An entry in a WeakSet will automatically be removed when the element is no longer in ordinary use. More precisely, the presence of an given element will not prevent the element from being discarded by the garbage collector, that is, made finalizable, finalized, and then reclaimed.
StateAdapter: A helper state for instances which need to be StateMachine.Acceptable and/or StateMachine.ChangeListener s.
ObjectNameFactory: A simple factory for creating safe object names. This factory will not throw MalformedObjectNameException. Any such exceptions will be translated into Errors. This should only be used where it is not possible to catch a MalformedObjectNameException, such as when defining a static final in an interface.
TimerTask: A class that represent a task that can be scheduled for one-shot or repeated execution by a TimerQueue . A similar class is present in java.util package of jdk version >= 1.3; for compatibility with jdk 1.2 we reimplemented it.
CustomObjectInputStreamWithClassloader: Customized object input stream that redefines readClassDescriptor() in order to read a short class descriptor (just the class name) when deserializing an object takes a class loader in its constructor and uses it to retrieve the class definitions.
DefaultStateMachineModel: A default implementation of a state machine model. Accepting to acceptable state mappings are backed up by a HashMap and HashSets. Implements clonable so that the model can be used as a prototype. Nested containers are cloned, so that changes will not effect the master or other clones.
PropertyGroup: This is a helper class to access a group of properties with out having to refer to their full names. This class needs more work to be fully functional. It should suffice for adding property listeners and getting/setting property values, but other activies might not work out so well.
TimerQueue: This class runs in a single thread TimerTask s that have been scheduled. A similar class is present in java.util package of jdk version >= 1.3; for compatibility with jdk 1.2 it is reimplemented here.
| Home | Contact Us | Privacy Policy | Terms of Service |