|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.hk2.component.AbstractInhabitantImpl<T>
com.sun.hk2.component.EventPublishingInhabitant<T>
com.sun.hk2.component.LazyInhabitant
org.jvnet.hk2.config.Dom
org.jvnet.hk2.config.ConfigBean
public class ConfigBean
ConfigBean is the core implementation of the config beans. It has features like locking view creation and optional features attachement.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.sun.hk2.component.Holder |
|---|
com.sun.hk2.component.Holder.Impl<T> |
| Field Summary |
|---|
| Fields inherited from class org.jvnet.hk2.config.Dom |
|---|
document, model |
| Fields inherited from class com.sun.hk2.component.LazyInhabitant |
|---|
habitat |
| Fields inherited from class com.sun.hk2.component.EventPublishingInhabitant |
|---|
real |
| Constructor Summary | |
|---|---|
ConfigBean(Dom source,
Dom parent)
Copy constructor, used to get a deep copy of the passed instance. |
|
ConfigBean(org.jvnet.hk2.component.Habitat habitat,
DomDocument document,
ConfigBean parent,
ConfigModel model,
javax.xml.stream.XMLStreamReader in)
|
|
| Method Summary | ||
|---|---|---|
void |
addInterceptor(java.lang.Class<?> interceptorType,
ConfigBeanInterceptor interceptor)
Add a new ConfigBeanInterceptor to this ConfigBean instance. |
|
ConfigBean |
allocate(java.lang.Class<?> type)
Allocate a new ConfigBean object as part of the Transaction associated with this configuration object. |
|
protected
|
copy(T parent)
Returns a copy of itself providing the parent for the new copy. |
|
java.util.concurrent.locks.Lock |
getLock()
Returns the lock on this object, only one external view (usually the writeable view) can acquire the lock ensuring that the objects cannot be concurrently modified |
|
ConfigBean |
getMasterView()
We are the master view. |
|
javax.management.ObjectName |
getObjectName()
|
|
|
getOptionalFeature(java.lang.Class<T> featureType)
Returns an optional feature of the ConfigBean. |
|
|
getProxy(java.lang.Class<T> proxyType)
Creates a proxy for this view. |
|
protected java.lang.Object |
getter(ConfigModel.Property target,
java.lang.reflect.Type t)
|
|
ConfigBean |
parent()
If this DOM is a child of another DOM, the parent pointer. |
|
void |
setMasterView(ConfigView view)
|
|
void |
setObjectName(javax.management.ObjectName objectNameIn)
|
|
protected void |
setter(ConfigModel.Property target,
java.lang.Object value)
|
|
| Methods inherited from class com.sun.hk2.component.LazyInhabitant |
|---|
fetch, getClassLoader, lead, loadClass, metadata, type, typeName |
| Methods inherited from class com.sun.hk2.component.EventPublishingInhabitant |
|---|
addInhabitantListener, get, isInstantiated, notify, removeInhabitantListener, toString |
| Methods inherited from class com.sun.hk2.component.AbstractInhabitantImpl |
|---|
companions, get, getAnnotation, getAnnotation, getSerializedMetadata, getSerializedMetadata, setCompanions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jvnet.hk2.config.ConfigView |
|---|
getProxyType |
| Methods inherited from interface java.lang.reflect.InvocationHandler |
|---|
invoke |
| Constructor Detail |
|---|
public ConfigBean(org.jvnet.hk2.component.Habitat habitat,
DomDocument document,
ConfigBean parent,
ConfigModel model,
javax.xml.stream.XMLStreamReader in)
public ConfigBean(Dom source,
Dom parent)
source - the instance to copy| Method Detail |
|---|
public javax.management.ObjectName getObjectName()
public void setObjectName(javax.management.ObjectName objectNameIn)
protected <T extends Dom> T copy(T parent)
copy in class Domparent - the parent instance for the cloned copy
public <T> T getOptionalFeature(java.lang.Class<T> featureType)
featureType - type of the optional feature requested.
protected void setter(ConfigModel.Property target,
java.lang.Object value)
throws java.lang.Exception
setter in class Domjava.lang.Exception
protected java.lang.Object getter(ConfigModel.Property target,
java.lang.reflect.Type t)
getter in class Dom
public void addInterceptor(java.lang.Class<?> interceptorType,
ConfigBeanInterceptor interceptor)
interceptorType - type of the type interceptor.interceptor - the new interceptorpublic ConfigBean getMasterView()
getMasterView in interface ConfigViewpublic void setMasterView(ConfigView view)
setMasterView in interface ConfigViewpublic <T extends ConfigBeanProxy> T getProxy(java.lang.Class<T> proxyType)
getProxy in interface ConfigViewproxyType - requested proxy type
public ConfigBean allocate(java.lang.Class<?> type)
type - the request configuration object type
public java.util.concurrent.locks.Lock getLock()
public ConfigBean parent()
Dom
parent in class Dom
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||