| Modifier and Type | Field and Description |
|---|---|
| private final LinkedList | |
| private final LinkedList | |
| private final LinkedList | |
| private final LinkedList | |
| private boolean | |
| private final ServiceLocatorImpl | |
| private final ReentrantLock |
| Access | Constructor and Description |
|---|---|
| public | DynamicConfigurationImpl(ServiceLocatorImpl
The locator for which this will be the configuration service locator)Created by the generator, and hence must be public |
| Modifier and Type | Method and Description |
|---|---|
| public <T> ActiveDescriptor | addActiveDescriptor(ActiveDescriptor<T> activeDescriptor)
Implements org. This allows third party systems to add reified active descriptors to the system. |
| public <T> ActiveDescriptor | addActiveDescriptor(ActiveDescriptor<T> activeDescriptor, boolean requiresDeepCopy)
Implements org. This allows third party systems to add reified active descriptors to the system. |
| public <T> ActiveDescriptor | addActiveDescriptor(Class<T> rawClass)
Implements org. This adds an active descriptor to the system based completely on the analysis of the given class. |
| public <T> FactoryDescriptors | addActiveFactoryDescriptor(Class<? extends Factory<T>> rawFactoryClass)
Implements org. This adds two active descriptors to the system based completely on the analysis
of the given |
| public void | addIdempotentFilter(Filter... idempotentFilter)
Implements org. At commit time all idempotent filters in this dynamic configuration will be run against all validation-visible descriptors. |
| public void | addUnbindFilter(Filter unbindFilter)
Implements org. This filter will added to the list of filters in this Configuration that will determine which Descriptors will be removed from the system. |
| public <T> ActiveDescriptor | bind(Descriptor key)
Implements org. This method will bind the given descriptor to this Module. |
| public <T> ActiveDescriptor | bind(Descriptor key, boolean requiresDeepCopy)
Implements org. This method will bind the given descriptor to this Module. |
| public FactoryDescriptors | bind(FactoryDescriptors factoryDescriptors)
Implements org. This method will bind the descriptors found in the
|
| public FactoryDescriptors | bind(FactoryDescriptors factoryDescriptors, boolean requiresDeepCopy)
Implements org. This method will bind the descriptors found in the
|
| private static void | |
| private static void | |
| private void | |
| public void | commit()
Implements org. This causes the configuration to get committed. |
| pack-priv LinkedList | |
| pack-priv LinkedList | |
| pack-priv LinkedList | |
| pack-priv LinkedList | |
| public void | registerTwoPhaseResources(TwoPhaseResource... resources)
Implements org. Registers two-phase resources in the order in which they are to run. |
| public String |
| allDescriptors | back to summary |
|---|---|
| private final LinkedList<SystemDescriptor<?>> allDescriptors | |
| allIdempotentFilters | back to summary |
|---|---|
| private final LinkedList<Filter> allIdempotentFilters | |
| allResources | back to summary |
|---|---|
| private final LinkedList<TwoPhaseResource> allResources | |
| allUnbindFilters | back to summary |
|---|---|
| private final LinkedList<Filter> allUnbindFilters | |
| committed | back to summary |
|---|---|
| private boolean committed | |
| locator | back to summary |
|---|---|
| private final ServiceLocatorImpl locator | |
| lock | back to summary |
|---|---|
| private final ReentrantLock lock | |
| DynamicConfigurationImpl | back to summary |
|---|---|
| public DynamicConfigurationImpl(ServiceLocatorImpl locator) Created by the generator, and hence must be public
| |
| addActiveDescriptor | back to summary |
|---|---|
| public <T> ActiveDescriptor Implements org. Doc from org. This allows third party systems to add reified active descriptors to the system. The active descriptor given must be fully reified (isReified must return true) and the create and destroy methods must be implemented. A deep copy will be made of the descriptor
| |
| addActiveDescriptor | back to summary |
|---|---|
| public <T> ActiveDescriptor Implements org. Doc from org. This allows third party systems to add reified active descriptors to the system. The active descriptor given must be fully reified (isReified must return true) and the create and destroy methods must be implemented. A deep copy will be made of the descriptor
| |
| addActiveDescriptor | back to summary |
|---|---|
| public <T> ActiveDescriptor Implements org. Doc from org. This adds an active descriptor to the system based completely on the analysis of the given class. The class itself and all interfaces marked contract will be in the list of advertised services. The scope and qualifiers will be taken from the annotations on the class.
| |
| addActiveFactoryDescriptor | back to summary |
|---|---|
| public <T> FactoryDescriptors addActiveFactoryDescriptor(Class<? extends Factory<T>> rawFactoryClass) throws MultiException, IllegalArgumentException Implements org. Doc from org. This adds two active descriptors to the system based completely on the analysis
of the given
| |
| addIdempotentFilter | back to summary |
|---|---|
| public void addIdempotentFilter(Filter... idempotentFilter) throws IllegalArgumentException Implements org. Doc from org. At commit time all idempotent filters in this dynamic configuration will be run against all validation-visible descriptors. If any of the idempotent filters are a match then the commit will FAIL and none of the descriptors in this DynamicConfiguration will be added or removed. The idempotent filters will be run under the same lock as the commit, and hence can guarantee true idempotency of the transaction.
The normal use case for the use of this filter is to ensure that a service is only added
once to the
The filter passed in should not do any change to the set of descriptors itself, any attempt
to do so will leave the system in an inconsistent state.
| |
| addUnbindFilter | back to summary |
|---|---|
| public void addUnbindFilter(Filter unbindFilter) throws IllegalArgumentException Implements org. Doc from org. This filter will added to the list of filters in this Configuration that will
determine which Descriptors will be removed from the system. Only services directly
from this Configuration objects' associated ServiceLocator will be given to this Filter
(it will not be given descriptors from the ServiceLocators parent). The descriptors passed
into this filter may be cast to
And descriptor for which this filter returns true will be removed from the
In order to unbind a filter the caller of commit must pass the LOOKUP validators and the UNBIND validators.
| |
| bind | back to summary |
|---|---|
| public <T> ActiveDescriptor Implements org. Doc from org. This method will bind the given descriptor to this Module. If the descriptor given is not an ActiveDescriptor then a non-reified ActiveDescriptor will be returned with the system provided fields set. If the descriptor given is a reified ActiveDescriptor then the descriptor returned will be a reified ActiveDescriptor that takes all values except for the id from the given descriptor. A deep copy will be made of the incoming descriptor
| |
| bind | back to summary |
|---|---|
| public <T> ActiveDescriptor Implements org. Doc from org. This method will bind the given descriptor to this Module. If the descriptor given is not an ActiveDescriptor then a non-reified ActiveDescriptor will be returned with the system provided fields set. If the descriptor given is a reified ActiveDescriptor then the descriptor returned will be a reified ActiveDescriptor that takes all values except for the id from the given descriptor.
| |
| bind | back to summary |
|---|---|
| public FactoryDescriptors bind(FactoryDescriptors factoryDescriptors) Implements org. Doc from org. This method will bind the descriptors found in the
| |
| bind | back to summary |
|---|---|
| public FactoryDescriptors bind(FactoryDescriptors factoryDescriptors, boolean requiresDeepCopy) Implements org. Doc from org. This method will bind the descriptors found in the
| |
| checkDescriptor | back to summary |
|---|---|
| private static void checkDescriptor(Descriptor d) | |
| checkReifiedDescriptor | back to summary |
|---|---|
| private static void checkReifiedDescriptor(ActiveDescriptor<?> d) | |
| checkState | back to summary |
|---|---|
| private void checkState() | |
| commit | back to summary |
|---|---|
| public void commit() throws MultiException Implements org. Doc from org. This causes the configuration to get committed. This method may only be called once
| |
| getAllDescriptors | back to summary |
|---|---|
pack-priv LinkedList
| |
| getIdempotentFilters | back to summary |
|---|---|
| pack-priv LinkedList | |
| getResources | back to summary |
|---|---|
| pack-priv LinkedList | |
| getUnbindFilters | back to summary |
|---|---|
| pack-priv LinkedList | |
| registerTwoPhaseResources | back to summary |
|---|---|
| public void registerTwoPhaseResources(TwoPhaseResource... resources) Implements org. Doc from org. Registers two-phase resources in the order in which they are to run. Subsequent calls to this method will add resources at the end of the existing list
| |
| 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-
| |