Package org.glassfish.config.support
Class GlassFishConfigBean
- java.lang.Object
-
- org.glassfish.hk2.utilities.DescriptorImpl
-
- org.glassfish.hk2.utilities.AbstractActiveDescriptor
-
- org.jvnet.hk2.config.Dom
-
- org.jvnet.hk2.config.ConfigBean
-
- org.glassfish.config.support.GlassFishConfigBean
-
- All Implemented Interfaces:
Externalizable
,Serializable
,InvocationHandler
,org.glassfish.hk2.api.ActiveDescriptor
,org.glassfish.hk2.api.Descriptor
,org.glassfish.hk2.api.SingleCache
,ConfigView
,ObservableBean
public final class GlassFishConfigBean extends ConfigBean
Translated view of a configured objects where values can be represented with a @{xx.yy.zz} name to be translated using a property value translator.- Author:
- Jerome Dochez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GlassFishConfigBean(org.glassfish.hk2.api.ServiceLocator habitat, DomDocument document, GlassFishConfigBean parent, ConfigModel model, XMLStreamReader in)
GlassFishConfigBean(Dom source, Dom parent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T extends Dom>
Tcopy(T parent)
Returns a copy of itself<T extends ConfigBeanProxy>
TcreateProxy(Class<T> proxyType)
Creates a strongly-typed proxy to access values in thisDom
object, by using the specified interface type as the proxy type.static <T extends ConfigBeanProxy>
TgetRawView(T s)
Returns the translated view of a configuration objectvoid
initializationCompleted()
String
toString()
-
Methods inherited from class org.jvnet.hk2.config.ConfigBean
addInterceptor, allocate, equals, getLock, getMasterView, getObjectName, getOptionalFeature, getProxy, getter, hashCode, parent, setMasterView, setObjectName, setter
-
Methods inherited from class org.jvnet.hk2.config.Dom
addDefaultChildren, addLeafElement, addListener, attribute, attribute, attributes, changeLeafElement, convertName, create, createCreator, createProxy, digAnnotation, digAnnotation, domNodeByTypeElements, element, get, getAttributeNames, getCache, getContractTypes, getElementNames, getFactoryLocatorId, getFactoryServiceId, getHabitat, getImplementationClass, getImplementationType, getInjectees, getInjector, getKey, getLocation, getProxyType, getQualifierAnnotations, getScopeAnnotation, getServiceLocator, getSymbolSpaceRoot, 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
-
Methods inherited from class org.glassfish.hk2.utilities.AbstractActiveDescriptor
addContractType, addQualifierAnnotation, dispose, getScopeAsAnnotation, removeContractType, removeQualifierAnnotation, setFactoryId, setName, setReified, setScopeAnnotation, setScopeAsAnnotation
-
Methods inherited from class org.glassfish.hk2.utilities.DescriptorImpl
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, writeExternal, writeObject
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jvnet.hk2.config.ConfigView
getProxyType
-
Methods inherited from interface org.glassfish.hk2.api.Descriptor
getAdvertisedContracts, getClassAnalysisName, getDescriptorType, getDescriptorVisibility, getImplementation, getLoader, getLocatorId, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, isProxiable, isProxyForSameScope, setRanking
-
Methods inherited from interface java.lang.reflect.InvocationHandler
invoke
-
-
-
-
Constructor Detail
-
GlassFishConfigBean
public GlassFishConfigBean(org.glassfish.hk2.api.ServiceLocator habitat, DomDocument document, GlassFishConfigBean parent, ConfigModel model, XMLStreamReader in)
-
-
Method Detail
-
getRawView
public static <T extends ConfigBeanProxy> T getRawView(T s)
Returns the translated view of a configuration object- Type Parameters:
T
-- Parameters:
s
- the config-api interface implementation- Returns:
- the new interface implementation providing the raw view
-
createProxy
public <T extends ConfigBeanProxy> T createProxy(Class<T> proxyType)
Description copied from class:Dom
Creates a strongly-typed proxy to access values in thisDom
object, by using the specified interface type as the proxy type.- Overrides:
createProxy
in classDom
-
copy
protected <T extends Dom> T copy(T parent)
Returns a copy of itself- Overrides:
copy
in classConfigBean
- Type Parameters:
T
-- Parameters:
parent
-- Returns:
- a copy of itself.
-
initializationCompleted
public void initializationCompleted()
- Overrides:
initializationCompleted
in classDom
-
toString
public String toString()
- Overrides:
toString
in classorg.glassfish.hk2.utilities.DescriptorImpl
-
-