Factory
| Modifier and Type | Field and Description |
|---|---|
| private final Descriptor | |
| private final Descriptor |
| Access | Constructor and Description |
|---|---|
| public | FactoryDescriptorsImpl(Descriptor
A description of the factory itself as an hk2 service.
May not be null. Must have DescriptorType of asService, Descriptor DescriptorType#CLASS. One
of the contracts must be FactoryA description of the provide method of the factory. Must have
DescriptorType of asProvideMethod)DescriptorType#PROVIDE_METHOD.
May not be nullThis creates a descriptor pair describing a |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public Descriptor | getFactoryAsAFactory()
Implements org. This returns the factory as a factory for some other type. |
| public Descriptor | getFactoryAsAService()
Implements org. This returns the factory as a service itself. |
| public int | |
| public String |
| asProvideMethod | back to summary |
|---|---|
| private final Descriptor asProvideMethod | |
| asService | back to summary |
|---|---|
| private final Descriptor asService | |
| FactoryDescriptorsImpl | back to summary |
|---|---|
| public FactoryDescriptorsImpl(Descriptor asService, Descriptor asProvideMethod) This creates a descriptor pair describing a
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getFactoryAsAFactory | back to summary |
|---|---|
| public Descriptor getFactoryAsAFactory() Implements org. Doc from org. This returns the factory as a factory for some other type. The
implementation class should contain the implementation class
of the factory service. If the implementation class returned from
this does not match the implementation class returned from getFactoryAsAService
an error will occur. The contracts, name and qualifiers should represent
the type returned from the provide method of the factory. The descriptor
type must be
| |
| getFactoryAsAService | back to summary |
|---|---|
| public Descriptor getFactoryAsAService() Implements org. Doc from org. This returns the factory as a service itself. The advertised
contracts must contain the implementation class of the factory and
the
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |