org.jvnet.hk2.internal
Class SystemDescriptor<T>

java.lang.Object
  extended by org.jvnet.hk2.internal.SystemDescriptor<T>
Type Parameters:
T - The type from the cache
All Implemented Interfaces:
ActiveDescriptor<T>, Descriptor, SingleCache<T>

public class SystemDescriptor<T>
extends Object
implements ActiveDescriptor<T>

Author:
jwells

Method Summary
 T create(ServiceHandle<?> root)
           
 void dispose(T instance)
           
 boolean equals(Object o)
           
 Set<String> getAdvertisedContracts()
           
 Descriptor getBaseDescriptor()
           
 T getCache()
           
 Set<Type> getContractTypes()
           
 DescriptorType getDescriptorType()
           
 Long getFactoryLocatorId()
           
 Long getFactoryServiceId()
           
 String getImplementation()
           
 Class<?> getImplementationClass()
           
 List<Injectee> getInjectees()
           
 HK2Loader getLoader()
           
 Long getLocatorId()
           
 Map<String,List<String>> getMetadata()
           
 String getName()
           
 Set<Annotation> getQualifierAnnotations()
           
 Set<String> getQualifiers()
           
 int getRanking()
           
 String getScope()
           
 Class<? extends Annotation> getScopeAnnotation()
           
 Long getServiceId()
           
 int hashCode()
           
 boolean isCacheSet()
           
 Boolean isProxiable()
           
 boolean isReified()
           
 void releaseCache()
           
 void setCache(T cacheMe)
           
 int setRanking(int ranking)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getImplementation

public String getImplementation()
Specified by:
getImplementation in interface Descriptor

getAdvertisedContracts

public Set<String> getAdvertisedContracts()
Specified by:
getAdvertisedContracts in interface Descriptor

getScope

public String getScope()
Specified by:
getScope in interface Descriptor

getName

public String getName()
Specified by:
getName in interface Descriptor

getQualifiers

public Set<String> getQualifiers()
Specified by:
getQualifiers in interface Descriptor

getDescriptorType

public DescriptorType getDescriptorType()
Specified by:
getDescriptorType in interface Descriptor

getMetadata

public Map<String,List<String>> getMetadata()
Specified by:
getMetadata in interface Descriptor

getLoader

public HK2Loader getLoader()
Specified by:
getLoader in interface Descriptor

getRanking

public int getRanking()
Specified by:
getRanking in interface Descriptor

isProxiable

public Boolean isProxiable()
Specified by:
isProxiable in interface Descriptor

setRanking

public int setRanking(int ranking)
Specified by:
setRanking in interface Descriptor

getBaseDescriptor

public Descriptor getBaseDescriptor()
Specified by:
getBaseDescriptor in interface Descriptor

getServiceId

public Long getServiceId()
Specified by:
getServiceId in interface Descriptor

getCache

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

isCacheSet

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

setCache

public void setCache(T cacheMe)
Specified by:
setCache in interface SingleCache<T>

releaseCache

public void releaseCache()
Specified by:
releaseCache in interface SingleCache<T>

isReified

public boolean isReified()
Specified by:
isReified in interface ActiveDescriptor<T>

getImplementationClass

public Class<?> getImplementationClass()
Specified by:
getImplementationClass in interface ActiveDescriptor<T>

getContractTypes

public Set<Type> getContractTypes()
Specified by:
getContractTypes in interface ActiveDescriptor<T>

getScopeAnnotation

public Class<? extends Annotation> getScopeAnnotation()
Specified by:
getScopeAnnotation in interface ActiveDescriptor<T>

getQualifierAnnotations

public Set<Annotation> getQualifierAnnotations()
Specified by:
getQualifierAnnotations in interface ActiveDescriptor<T>

getInjectees

public List<Injectee> getInjectees()
Specified by:
getInjectees in interface ActiveDescriptor<T>

getFactoryServiceId

public Long getFactoryServiceId()
Specified by:
getFactoryServiceId in interface ActiveDescriptor<T>

getFactoryLocatorId

public Long getFactoryLocatorId()
Specified by:
getFactoryLocatorId in interface ActiveDescriptor<T>

create

public T create(ServiceHandle<?> root)
Specified by:
create in interface ActiveDescriptor<T>

dispose

public void dispose(T instance)
Specified by:
dispose in interface ActiveDescriptor<T>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

getLocatorId

public Long getLocatorId()
Specified by:
getLocatorId in interface Descriptor

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 Oracle Corporation. All Rights Reserved.