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.
|
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) |
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, equals, get, getAttributeNames, getCache, getContractTypes, getElementNames, getFactoryLocatorId, getFactoryServiceId, getHabitat, getImplementationClass, getInjectees, getInjector, getKey, getLocation, getProxyType, getQualifierAnnotations, getScopeAnnotation, getServiceLocator, getSymbolSpaceRoot, hashCode, initializationCompleted, inject, insertAfter, invoke, invoke, isCacheSet, isReified, leafElement, leafElements, nodeByTypeElement, nodeByTypeElements, nodeElement, nodeElements, rawAttribute, rawLeafElement, rawLeafElements, release, releaseCache, removeChild, removeLeafElement, removeListener, replaceChild, resolveReference, setCache, setLeafElements, setNodeElements, skipFromXml, unwrap, writeTo, writeToXmladdContractType, addQualifierAnnotation, dispose, getScopeAsAnnotation, removeContractType, removeQualifierAnnotation, setFactoryId, setName, setReified, setScopeAnnotation, setScopeAsAnnotationaddAdvertisedContract, addMetadata, addMetadata, addQualifier, clearMetadata, 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, writeObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetProxyTypeinvokegetAdvertisedContracts, getClassAnalysisName, getDescriptorType, getDescriptorVisibility, getImplementation, getLoader, getLocatorId, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, isProxiable, isProxyForSameScope, setRankingpublic 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 ConfigViewpublic void setMasterView(ConfigView view)
setMasterView in interface ConfigViewpublic <T extends ConfigBeanProxy> T getProxy(Class<T> proxyType)
getProxy in interface ConfigViewproxyType - requested proxy typepublic ConfigBean allocate(Class<?> type)
type - the request configuration object typepublic Lock getLock()
public ConfigBean parent()
DomCopyright © 2009-2015 Oracle Corporation. All Rights Reserved.