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 java.lang.Object
implements ActiveDescriptor<T>

Author:
jwells

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

Method Detail

getImplementation

public java.lang.String getImplementation()
Specified by:
getImplementation in interface Descriptor

getAdvertisedContracts

public java.util.Set<java.lang.String> getAdvertisedContracts()
Specified by:
getAdvertisedContracts in interface Descriptor

getScope

public java.lang.String getScope()
Specified by:
getScope in interface Descriptor

getName

public java.lang.String getName()
Specified by:
getName in interface Descriptor

getQualifiers

public java.util.Set<java.lang.String> getQualifiers()
Specified by:
getQualifiers in interface Descriptor

getDescriptorType

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

getDescriptorVisibility

public DescriptorVisibility getDescriptorVisibility()
Specified by:
getDescriptorVisibility in interface Descriptor

getMetadata

public java.util.Map<java.lang.String,java.util.List<java.lang.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 java.lang.Boolean isProxiable()
Specified by:
isProxiable in interface Descriptor

getClassAnalysisName

public java.lang.String getClassAnalysisName()
Specified by:
getClassAnalysisName 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 java.lang.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 java.lang.Class<?> getImplementationClass()
Specified by:
getImplementationClass in interface ActiveDescriptor<T>

getContractTypes

public java.util.Set<java.lang.reflect.Type> getContractTypes()
Specified by:
getContractTypes in interface ActiveDescriptor<T>

getScopeAnnotation

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

getQualifierAnnotations

public java.util.Set<java.lang.annotation.Annotation> getQualifierAnnotations()
Specified by:
getQualifierAnnotations in interface ActiveDescriptor<T>

getInjectees

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

getFactoryServiceId

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

getFactoryLocatorId

public java.lang.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 java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getLocatorId

public java.lang.Long getLocatorId()
Specified by:
getLocatorId in interface Descriptor

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2013 Oracle Corporation. All Rights Reserved.