org.jvnet.hk2.internal
Class SystemDescriptor<T>
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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
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 © 2012 Oracle Corporation. All Rights Reserved.