Package org.picocontainer
Class Characteristics
java.lang.Object
org.picocontainer.Characteristics
Collection of immutable properties, holding behaviour characteristics. See
The PicoContainer Website for details on the usage
of Characteristics.
- Author:
- Paul Hammant
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Read only property set. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Properties
static final Properties
Turns on Caching of component instances.static final Properties
Turns on constructor injection.static final Properties
static final Properties
static final String
Since properties use strings, we supply String constants for Boolean conditions.static final Properties
static final Properties
Turns on implementation hiding.static final Properties
Uses a java.util.concurrent.Lock to provide faster access than synchronized.static final Properties
Turns on Method Injection.static final Properties
Turns off Caching of component instances.static final Properties
Turns off implementation hiding.static final Properties
Turns off locking synchronization.static final Properties
Turns off bean-setting property applications.static final Properties
Synonym forNO_CACHE
.static final Properties
Turns off synchronized access to the component instance.static final Properties
static final Properties
Turns on bean-setting property applications where certain simple properties are set after the object is created based.static final Properties
Turns on Setter Injection.static final Properties
Synonym forCACHE
.static final Properties
Turns on synchronized access to the component instance.static final String
Since properties use strings, we supply String constants for Boolean conditions.static final Properties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final Properties
static Properties
Transforms a single name value pair unto a read only Properties instance.
-
Field Details
-
FALSE
Since properties use strings, we supply String constants for Boolean conditions.- See Also:
-
TRUE
Since properties use strings, we supply String constants for Boolean conditions.- See Also:
-
CDI
Turns on constructor injection.- See Also:
-
SDI
Turns on Setter Injection.- See Also:
-
METHOD_INJECTION
Turns on Method Injection. -
NO_CACHE
Turns off Caching of component instances. (Often referred to in other circles as singleton).- See Also:
-
CACHE
Turns on Caching of component instances. (Often referred to in other circles as singleton)- See Also:
-
SYNCHRONIZE
Turns on synchronized access to the component instance. (Under JDK 1.5 conditions, it will be better to useLOCK
instead.- See Also:
-
NO_SYNCHRONIZE
Turns off synchronized access to the component instance.- See Also:
-
LOCK
Uses a java.util.concurrent.Lock to provide faster access than synchronized.- See Also:
-
NO_LOCK
Turns off locking synchronization.- See Also:
-
SINGLE
Synonym forCACHE
.- See Also:
-
NO_SINGLE
Synonym forNO_CACHE
.- See Also:
-
HIDE_IMPL
Turns on implementation hiding. You may use the JDK Proxy implementation included in this version, or the ASM-based implementation hiding method included in PicoContainer Gems. However, you cannot use both in a single PicoContainer instance. -
NO_HIDE_IMPL
Turns off implementation hiding.- See Also:
-
ENABLE_CIRCULAR
-
NONE
-
PROPERTY_APPLYING
Turns on bean-setting property applications where certain simple properties are set after the object is created based. -
NO_PROPERTY_APPLYING
Turns off bean-setting property applications.- See Also:
-
AUTOMATIC
-
USE_NAMES
-
EMJECTION_ENABLED
-
GUARD
-
-
Constructor Details
-
Characteristics
public Characteristics()
-
-
Method Details
-
GUARD
-
immutable
Transforms a single name value pair unto a read only Properties instance.Example Usage:
Properties readOnly = immutable("oneKey","oneValue"}; assert readOnly.getProperty("oneKey") != null);
- Parameters:
name
- the property key.value
- the property value.- Returns:
- Read Only properties instance.
-