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, org.jvnet.hk2.config.ConfigView, org.jvnet.hk2.config.ObservableBean

public final class GlassFishConfigBean extends org.jvnet.hk2.config.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:
  • Field Summary

    Fields inherited from class org.jvnet.hk2.config.Dom

    document, model
  • Constructor Summary

    Constructors
    Constructor
    Description
    GlassFishConfigBean(org.glassfish.hk2.api.ServiceLocator habitat, org.jvnet.hk2.config.DomDocument document, GlassFishConfigBean parent, org.jvnet.hk2.config.ConfigModel model, XMLStreamReader in)
     
    GlassFishConfigBean(org.jvnet.hk2.config.Dom source, org.jvnet.hk2.config.Dom parent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected <T extends org.jvnet.hk2.config.Dom>
    T
    copy(T parent)
    Returns a copy of itself
    <T extends org.jvnet.hk2.config.ConfigBeanProxy>
    T
    createProxy(Class<T> proxyType)
     
    static <T extends org.jvnet.hk2.config.ConfigBeanProxy>
    T
    Returns the translated view of a configuration object
    void
     
     

    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 Details

    • GlassFishConfigBean

      public GlassFishConfigBean(org.glassfish.hk2.api.ServiceLocator habitat, org.jvnet.hk2.config.DomDocument document, GlassFishConfigBean parent, org.jvnet.hk2.config.ConfigModel model, XMLStreamReader in)
    • GlassFishConfigBean

      public GlassFishConfigBean(org.jvnet.hk2.config.Dom source, org.jvnet.hk2.config.Dom parent)
  • Method Details

    • getRawView

      public static <T extends org.jvnet.hk2.config.ConfigBeanProxy> T getRawView(T s)
      Returns the translated view of a configuration object
      Parameters:
      s - the config-api interface implementation
      Returns:
      the new interface implementation providing the raw view
    • createProxy

      public <T extends org.jvnet.hk2.config.ConfigBeanProxy> T createProxy(Class<T> proxyType)
      Overrides:
      createProxy in class org.jvnet.hk2.config.Dom
    • copy

      protected <T extends org.jvnet.hk2.config.Dom> T copy(T parent)
      Returns a copy of itself
      Overrides:
      copy in class org.jvnet.hk2.config.ConfigBean
      Returns:
      a copy of itself.
    • initializationCompleted

      public void initializationCompleted()
      Overrides:
      initializationCompleted in class org.jvnet.hk2.config.Dom
    • toString

      public String toString()
      Overrides:
      toString in class org.glassfish.hk2.utilities.DescriptorImpl