org.jvnet.hk2.config
Class DomDescriptor<T>

java.lang.Object
  extended by org.glassfish.hk2.utilities.DescriptorImpl
      extended by org.glassfish.hk2.utilities.AbstractActiveDescriptor<T>
          extended by org.jvnet.hk2.config.DomDescriptor<T>
All Implemented Interfaces:
Serializable, ActiveDescriptor<T>, Descriptor, SingleCache<T>

public class DomDescriptor<T>
extends AbstractActiveDescriptor<T>

Created by IntelliJ IDEA. User: makannan Date: 4/28/12 Time: 3:28 PM To change this template use File | Settings | File Templates.

See Also:
Serialized Form

Constructor Summary
DomDescriptor()
          For serializable
DomDescriptor(Dom theDom, Set<Type> advertisedContracts, Class<? extends Annotation> scope, String name, Set<Annotation> qualifiers)
          Creates the constant descriptor
 
Method Summary
 T create(ServiceHandle<?> root)
           
 T getCache()
           
 String getImplementation()
           
 Class<?> getImplementationClass()
           
 boolean isCacheSet()
           
 
Methods inherited from class org.glassfish.hk2.utilities.AbstractActiveDescriptor
addContractType, addQualifierAnnotation, dispose, getContractTypes, getFactoryLocatorId, getFactoryServiceId, getInjectees, getQualifierAnnotations, getScopeAnnotation, isReified, releaseCache, removeContractType, removeQualifierAnnotation, setCache, setFactoryId, setName, setReified
 
Methods inherited from class org.glassfish.hk2.utilities.DescriptorImpl
addAdvertisedContract, addMetadata, addQualifier, clearMetadata, equals, getAdvertisedContracts, getBaseDescriptor, getDescriptorType, getLoader, getLocatorId, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, hashCode, pretty, readObject, removeAdvertisedContract, removeAllMetadata, removeMetadata, removeQualifier, setBaseDescriptor, setDescriptorType, setImplementation, setLoader, setLocatorId, setMetadata, setRanking, setScope, setServiceId, toString, writeObject
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.glassfish.hk2.api.Descriptor
getAdvertisedContracts, getBaseDescriptor, getDescriptorType, getLoader, getLocatorId, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, setRanking
 

Constructor Detail

DomDescriptor

public DomDescriptor()
For serializable


DomDescriptor

public DomDescriptor(Dom theDom,
                     Set<Type> advertisedContracts,
                     Class<? extends Annotation> scope,
                     String name,
                     Set<Annotation> qualifiers)
Creates the constant descriptor

Parameters:
theDom - May not be null
advertisedContracts -
scope -
name -
qualifiers -
Method Detail

getImplementation

public String getImplementation()
Specified by:
getImplementation in interface Descriptor
Overrides:
getImplementation in class DescriptorImpl

getCache

public T getCache()
Specified by:
getCache in interface SingleCache<T>
Overrides:
getCache in class AbstractActiveDescriptor<T>

isCacheSet

public boolean isCacheSet()
Specified by:
isCacheSet in interface SingleCache<T>
Overrides:
isCacheSet in class AbstractActiveDescriptor<T>

getImplementationClass

public Class<?> getImplementationClass()

create

public T create(ServiceHandle<?> root)


Copyright © 2012 Oracle Corporation. All Rights Reserved.