T
- The cache typepublic class GuiceServiceHk2Bean<T> extends AbstractActiveDescriptor<T>
Modifier and Type | Field and Description |
---|---|
private com.google.inject.Binding<T> |
binding |
private java.lang.Class<?> |
implClass |
private static long |
serialVersionUID
For serialization
|
Constructor and Description |
---|
GuiceServiceHk2Bean()
For serialization
|
GuiceServiceHk2Bean(java.util.Set<java.lang.reflect.Type> contracts,
java.util.Set<java.lang.annotation.Annotation> qualifiers,
java.lang.Class<?> implClass,
com.google.inject.Binding<T> binding) |
Modifier and Type | Method and Description |
---|---|
T |
create(ServiceHandle<?> root)
Creates an instance of the ActiveDescriptor.
|
java.lang.Class<?> |
getImplementationClass()
The implementation class that should be used
to generate new instances of this descriptor.
|
java.lang.String |
toString() |
addContractType, addQualifierAnnotation, dispose, equals, getCache, getContractTypes, getFactoryLocatorId, getFactoryServiceId, getInjectees, getQualifierAnnotations, getScopeAnnotation, getScopeAsAnnotation, hashCode, isCacheSet, isReified, releaseCache, removeContractType, removeQualifierAnnotation, setCache, setFactoryId, setName, setReified, setScopeAnnotation, setScopeAsAnnotation
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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAdvertisedContracts, getClassAnalysisName, getDescriptorType, getDescriptorVisibility, getImplementation, getLoader, getLocatorId, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, isProxiable, isProxyForSameScope, setRanking
private static final long serialVersionUID
private java.lang.Class<?> implClass
private com.google.inject.Binding<T> binding
public GuiceServiceHk2Bean()
GuiceServiceHk2Bean(java.util.Set<java.lang.reflect.Type> contracts, java.util.Set<java.lang.annotation.Annotation> qualifiers, java.lang.Class<?> implClass, com.google.inject.Binding<T> binding)
public java.lang.Class<?> getImplementationClass()
ActiveDescriptor
If the class returned is a Factory, then the factory is used to create instances. In this case the system will get an instance of the factory and use it to create the instances
public T create(ServiceHandle<?> root)
ActiveDescriptor
root
- The root service handle, which can be used
to associated all the PerLookup objects with this creationpublic java.lang.String toString()
toString
in class DescriptorImpl