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 classRead only property set. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Propertiesstatic final PropertiesTurns on Caching of component instances.static final PropertiesTurns on constructor injection.static final Propertiesstatic final Propertiesstatic final StringSince properties use strings, we supply String constants for Boolean conditions.static final Propertiesstatic final PropertiesTurns on implementation hiding.static final PropertiesUses a java.util.concurrent.Lock to provide faster access than synchronized.static final PropertiesTurns on Method Injection.static final PropertiesTurns off Caching of component instances.static final PropertiesTurns off implementation hiding.static final PropertiesTurns off locking synchronization.static final PropertiesTurns off bean-setting property applications.static final PropertiesSynonym forNO_CACHE.static final PropertiesTurns off synchronized access to the component instance.static final Propertiesstatic final PropertiesTurns on bean-setting property applications where certain simple properties are set after the object is created based.static final PropertiesTurns on Setter Injection.static final PropertiesSynonym forCACHE.static final PropertiesTurns on synchronized access to the component instance.static final StringSince properties use strings, we supply String constants for Boolean conditions.static final Properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final Propertiesstatic PropertiesTransforms 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 useLOCKinstead.- 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.
-