|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.picocontainer.Characteristics
public final class Characteristics
Collection of immutable properties, holding behaviour characteristics. See The PicoContainer Website for details on the usage of Characteristics.
ComponentAdapter
,
Behavior
Nested Class Summary | |
---|---|
static class |
Characteristics.ImmutableProperties
Read only property set. |
Field Summary | |
---|---|
static Properties |
AUTOMATIC
|
static Properties |
CACHE
Turns on Caching of component instances. |
static Properties |
CDI
Turns on constructor injection. |
static Properties |
EMJECTION_ENABLED
|
static Properties |
ENABLE_CIRCULAR
|
static String |
FALSE
Since properties use strings, we supply String constants for Boolean conditions. |
static Properties |
GUARD
|
static Properties |
HIDE_IMPL
Turns on implementation hiding. |
static Properties |
LOCK
Uses a java.util.concurrent.Lock to provide faster access than synchronized. |
static Properties |
METHOD_INJECTION
Turns on Method Injection. |
static Properties |
NO_CACHE
Turns off Caching of component instances. |
static Properties |
NO_HIDE_IMPL
Turns off implementation hiding. |
static Properties |
NO_LOCK
Turns off locking synchronization. |
static Properties |
NO_PROPERTY_APPLYING
Turns off bean-setting property applications. |
static Properties |
NO_SINGLE
Synonym for NO_CACHE . |
static Properties |
NO_SYNCHRONIZE
Turns off synchronized access to the component instance. |
static Properties |
NONE
|
static Properties |
PROPERTY_APPLYING
Turns on bean-setting property applications where certain simple properties are set after the object is created based. |
static Properties |
SDI
Turns on Setter Injection. |
static Properties |
SINGLE
Synonym for CACHE . |
static Properties |
SYNCHRONIZE
Turns on synchronized access to the component instance. |
static String |
TRUE
Since properties use strings, we supply String constants for Boolean conditions. |
static Properties |
USE_NAMES
|
Constructor Summary | |
---|---|
Characteristics()
|
Method Summary | |
---|---|
static Properties |
GUARD(String with)
|
static Properties |
immutable(String name,
String value)
Transforms a single name value pair unto a read only Properties instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FALSE
public static final String TRUE
public static final Properties CDI
ConstructorInjection
public static final Properties SDI
SetterInjection
public static final Properties METHOD_INJECTION
public static final Properties NO_CACHE
Caching
public static final Properties CACHE
Caching
public static final Properties SYNCHRONIZE
LOCK
instead.
Synchronizing
public static final Properties NO_SYNCHRONIZE
Synchronizing
public static final Properties LOCK
Locking
public static final Properties NO_LOCK
Locking
public static final Properties SINGLE
CACHE
.
Caching
public static final Properties NO_SINGLE
NO_CACHE
.
Caching
public static final Properties HIDE_IMPL
public static final Properties NO_HIDE_IMPL
for more information.
public static final Properties ENABLE_CIRCULAR
public static final Properties NONE
public static final Properties PROPERTY_APPLYING
public static final Properties NO_PROPERTY_APPLYING
PropertyApplying
public static final Properties AUTOMATIC
public static final Properties USE_NAMES
public static final Properties EMJECTION_ENABLED
public static final Properties GUARD
Constructor Detail |
---|
public Characteristics()
Method Detail |
---|
public static final Properties GUARD(String with)
public static Properties immutable(String name, String value)
Example Usage:
Properties readOnly = immutable("oneKey","oneValue"}; assert readOnly.getProperty("oneKey") != null);
name
- the property key.value
- the property value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |