| Modifier and Type | Field and Description |
|---|---|
| private Creator | |
| private SystemDescriptor | |
| private Class | |
| private Type | |
| private static final long | serialVersionUID
Hides org. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | AutoActiveDescriptor(Class<?>
The class of the implementation clazz, Creator<T> The creator to use (factory or clazz) creator, Set<Type> The set of advertised contracts advertisedContracts, Class<? extends Annotation> The scope of the service scope, String The name of the service (may be null) name, Set<Annotation> The set of qualifier annotations qualifiers, DescriptorVisibility The visibility of this descriptor descriptorVisibility, int The initial rank ranking, Boolean Whether or not this can be proxied (null for default) proxy, Boolean Whether or not to proxy within the same scope (null for default) proxyForSameScope, String The name of the class analyzer (null for default) classAnalysisName, Map<String, List<String>> The set of metadata associated with this descriptor metadata, DescriptorType The type of the descriptor descriptorType, Type clazzType)Constructor with all relevant fields |
| Modifier and Type | Method and Description |
|---|---|
| public T | create(ServiceHandle<?> root)
Implements org. Creates an instance of the ActiveDescriptor. |
| public void | dispose(T instance)
Overrides org. Implements org. Disposes this instance. |
| public Class | getImplementationClass()
Implements org. The implementation class that should be used to generate new instances of this descriptor. |
| public Type | getImplementationType()
Implements org. If known the Type of the implementation. |
| public List | getInjectees()
Overrides org. Implements org. Returns the full list of Injectees this class has. |
| pack-priv void | |
| pack-priv void | |
| public void |
| creator | back to summary |
|---|---|
| private Creator<T> creator | |
| hk2Parent | back to summary |
|---|---|
| private SystemDescriptor<?> hk2Parent | |
| implClass | back to summary |
|---|---|
| private Class<?> implClass | |
| implType | back to summary |
|---|---|
| private Type implType | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. For serialization | |
| AutoActiveDescriptor | back to summary |
|---|---|
| public AutoActiveDescriptor() For serialization | |
| AutoActiveDescriptor | back to summary |
|---|---|
| public AutoActiveDescriptor(Class<?> clazz, Creator<T> creator, Set<Type> advertisedContracts, Class<? extends Annotation> scope, String name, Set<Annotation> qualifiers, DescriptorVisibility descriptorVisibility, int ranking, Boolean proxy, Boolean proxyForSameScope, String classAnalysisName, Map<String, List<String>> metadata, DescriptorType descriptorType, Type clazzType) Constructor with all relevant fields
| |
| create | back to summary |
|---|---|
| public T create(ServiceHandle<?> root) Implements org. Doc from org. Creates an instance of the ActiveDescriptor. All of the Injectee's must be created prior to instantiation, and associated with the ExtendedProvider so that they can be destroyed properly
| |
| dispose | back to summary |
|---|---|
| public void dispose(T instance) Overrides org. Implements org. Doc from org. Disposes this instance. All the PerLookup objects that were created for this instance will be destroyed after this object has been destroyed
| |
| getImplementationClass | back to summary |
|---|---|
| public Class Implements org. Doc from org. The implementation class that should be used to generate new instances of this descriptor. 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
| |
| getImplementationType | back to summary |
|---|---|
| public Type getImplementationType() Implements org. Doc from org. If known the Type of the implementation. If unknown will
return the same as
| |
| getInjectees | back to summary |
|---|---|
| public List Overrides org. Implements org. Doc from org. Returns the full list of Injectees this class has. These references will be resolved prior to the class being constructed, even if these injectees are field or method injectees. If this descriptor is describing a factory created type then this list must have zero length
| |
| resetSelfDescriptor | back to summary |
|---|---|
| pack-priv void resetSelfDescriptor(ActiveDescriptor<?> toMe) | |
| setHK2Parent | back to summary |
|---|---|
| pack-priv void setHK2Parent(SystemDescriptor<?> hk2Parent) | |
| setImplementationType | back to summary |
|---|---|
| public void setImplementationType(Type t) Overrides org.
| |