public class ConfigBean extends Dom implements ConfigView
Constructor and Description |
---|
ConfigBean(Dom source,
Dom parent)
Copy constructor, used to get a deep copy of the passed instance.
|
ConfigBean(org.glassfish.hk2.api.ServiceLocator habitat,
DomDocument document,
ConfigBean parent,
ConfigModel model,
XMLStreamReader in) |
Modifier and Type | Method and Description |
---|---|
void |
addInterceptor(Class<?> interceptorType,
ConfigBeanInterceptor interceptor)
Add a new ConfigBeanInterceptor to this ConfigBean instance.
|
ConfigBean |
allocate(Class<?> type)
Allocate a new ConfigBean object as part of the Transaction
associated with this configuration object.
|
protected <T extends Dom> |
copy(T parent)
Returns a copy of itself providing the parent for the new copy.
|
boolean |
equals(Object o) |
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.
|
ObjectName |
getObjectName() |
<T> T |
getOptionalFeature(Class<T> featureType)
Returns an optional feature of the ConfigBean.
|
<T extends ConfigBeanProxy> |
getProxy(Class<T> proxyType)
Creates a proxy for this view.
|
protected Object |
getter(ConfigModel.Property target,
Type t) |
int |
hashCode() |
ConfigBean |
parent()
If this DOM is a child of another DOM, the parent pointer.
|
void |
setMasterView(ConfigView view) |
void |
setObjectName(ObjectName objectNameIn) |
protected void |
setter(ConfigModel.Property target,
Object value) |
addDefaultChildren, addLeafElement, addListener, attribute, attribute, attributes, changeLeafElement, convertName, create, createCreator, createProxy, createProxy, digAnnotation, digAnnotation, domNodeByTypeElements, element, get, getAttributeNames, getCache, getContractTypes, getElementNames, getFactoryLocatorId, getFactoryServiceId, getHabitat, getImplementationClass, getImplementationType, getInjectees, getInjector, getKey, getLocation, getProxyType, getQualifierAnnotations, getScopeAnnotation, getServiceLocator, getSymbolSpaceRoot, initializationCompleted, inject, insertAfter, invoke, invoke, isCacheSet, isReified, leafElement, leafElements, nodeByTypeElement, nodeByTypeElements, nodeElement, nodeElements, rawAttribute, rawLeafElement, rawLeafElements, release, releaseCache, removeChild, removeLeafElement, removeListener, replaceChild, resolveReference, setCache, setImplementationType, setLeafElements, setNodeElements, skipFromXml, unwrap, writeTo, writeToXml
addContractType, addQualifierAnnotation, dispose, getScopeAsAnnotation, removeContractType, removeQualifierAnnotation, setFactoryId, setName, setReified, setScopeAnnotation, setScopeAsAnnotation
addAdvertisedContract, addMetadata, addMetadata, addQualifier, clearMetadata, descriptorEquals, getAdvertisedContracts, getClassAnalysisName, getDescriptorType, getDescriptorVisibility, getImplementation, getLoader, getLocatorId, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, isProxiable, isProxyForSameScope, pretty, readExternal, readObject, removeAdvertisedContract, removeAllMetadata, removeMetadata, removeQualifier, setClassAnalysisName, setDescriptorType, setDescriptorVisibility, setImplementation, setLoader, setLocatorId, setMetadata, setProxiable, setProxyForSameScope, setRanking, setScope, setServiceId, toString, writeExternal, writeObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getProxyType
invoke
getAdvertisedContracts, getClassAnalysisName, getDescriptorType, getDescriptorVisibility, getImplementation, getLoader, getLocatorId, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, isProxiable, isProxyForSameScope, setRanking
public ConfigBean(org.glassfish.hk2.api.ServiceLocator habitat, DomDocument document, ConfigBean parent, ConfigModel model, XMLStreamReader in)
public ObjectName getObjectName()
public void setObjectName(ObjectName objectNameIn)
protected <T extends Dom> T copy(T parent)
public <T> T getOptionalFeature(Class<T> featureType)
featureType
- type of the optional feature requested.protected void setter(ConfigModel.Property target, Object value) throws Exception
protected Object getter(ConfigModel.Property target, Type t)
public void addInterceptor(Class<?> interceptorType, ConfigBeanInterceptor interceptor)
interceptorType
- type of the type interceptor.interceptor
- the new interceptorpublic ConfigBean getMasterView()
getMasterView
in interface ConfigView
public void setMasterView(ConfigView view)
setMasterView
in interface ConfigView
public <T extends ConfigBeanProxy> T getProxy(Class<T> proxyType)
getProxy
in interface ConfigView
proxyType
- requested proxy typepublic ConfigBean allocate(Class<?> type)
type
- the request configuration object typepublic Lock getLock()
public ConfigBean parent()
Dom
Copyright © 2021. All rights reserved.