| Modifier and Type | Field and Description |
|---|---|
| private Long | |
| private static final long | serialVersionUID
Hides org. |
| private T |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ConstantActiveDescriptor(T
the object to create it from theOne, ServiceLocatorImpl the locator this is being created for locator)Creates a constant active descriptor with the given locator |
| public | ConstantActiveDescriptor(T
The non-null constant theOne, Set<Type> its advertised contracts advertisedContracts, Class<? extends Annotation> its scope scope, String its possibly null name name, Set<Annotation> its set of qualifiers qualifiers, DescriptorVisibility its visibility visibility, int its starting rank ranking, Boolean can it be proxied (null for default) proxy, Boolean will it be proxied for the same scope (null for default) proxyForSameScope, String The name of the analyzer (null for default) analyzerName, long its locator parent locatorId, Map<String, List<String>> The metadata associated with it metadata)Constructor with more control over the fields of the descriptor |
| locatorId | back to summary |
|---|---|
| private Long locatorId | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. For serialization | |
| theOne | back to summary |
|---|---|
| private T theOne | |
| ConstantActiveDescriptor | back to summary |
|---|---|
| public ConstantActiveDescriptor() For serialization | |
| ConstantActiveDescriptor | back to summary |
|---|---|
| public ConstantActiveDescriptor(T theOne, ServiceLocatorImpl locator) Creates a constant active descriptor with the given locator
| |
| ConstantActiveDescriptor | back to summary |
|---|---|
| public ConstantActiveDescriptor(T theOne, Set<Type> advertisedContracts, Class<? extends Annotation> scope, String name, Set<Annotation> qualifiers, DescriptorVisibility visibility, int ranking, Boolean proxy, Boolean proxyForSameScope, String analyzerName, long locatorId, Map<String, List<String>> metadata) Constructor with more control over the fields of the descriptor
| |
| 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
| |
| getCache | back to summary |
|---|---|
| public T getCache() Overrides org. Implements org. Doc from org. This can be used for scopes that will only every be created once. The returned value must have been set previously with setCache. If this is called when isCacheSet is false will result in a RuntimeException
| |
| getImplementation | back to summary |
|---|---|
| public String getImplementation() Overrides org. Implements org. Doc from org. Returns the fully qualified class name of the implementation class. If this is a factory descriptor then this will return the fully qualified name of the class implementing the factory interface.
| |
| 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
| |
| getLocatorId | back to summary |
|---|---|
| public Long getLocatorId() Overrides org. Implements org. Doc from org. This returns the id of the ServiceLocator which this descriptor is registered with. Returns null if this descriptor is not yet registered with a ServiceLocator | |
| isCacheSet | back to summary |
|---|---|
| public boolean isCacheSet() Overrides org. Implements org. Doc from org. Returns true if this cache has been set
| |
| setImplementationType | back to summary |
|---|---|
| public void setImplementationType(Type t) Overrides org.
| |