| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final IndexedListData | |
| private ConcurrentHashMap | |
| private final ReentrantLock | |
| private final LinkedHashSet | |
| private static final String | |
| private static final String | |
| private static final boolean | |
| private static final String | |
| private static final int | |
| private final Map | |
| private final ReentrantLock | |
| private final HashMap | |
| private final ClassReflectionHelper | |
| private final LinkedList | |
| private final Cache | |
| private static long | |
| private String | |
| private volatile Unqualified | |
| pack-priv static final DescriptorComparator | |
| private final HashMap | |
| private final HashMap | |
| private final LinkedList | |
| private static final ServiceHandleComparator | |
| private volatile boolean | |
| private final long | |
| private final WeakCARCache | |
| private final WeakCARCache | |
| private final Cache | |
| private final LinkedList | |
| private final String | |
| private volatile boolean | |
| private final AtomicLong | |
| private final ServiceLocatorImpl | |
| private final PerLocatorUtilities | |
| private final Context | |
| private final ReentrantReadWriteLock | |
| private final ReentrantReadWriteLock. | |
| private final Context | |
| private static final ReentrantLock | |
| private ServiceLocatorState | |
| private final ReentrantReadWriteLock. |
| Access | Constructor and Description |
|---|---|
| public | ServiceLocatorImpl(String
The name of this locator name, ServiceLocatorImpl The parent of this locator (may be null) parent)Called by the Generator, and hence must be a public method |
| Modifier and Type | Method and Description |
|---|---|
| private Context | |
| private void | |
| pack-priv void | |
| private List | |
| public Object | assistedInject(Object injectMe, Method method, MethodParameter... params)
Implements org. This will invoke the given method on the given object. |
| public Object | assistedInject(Object injectMe, Method method, ServiceHandle<?> root, MethodParameter... params)
Implements org. This will invoke the given method on the given object. |
| private void | |
| private boolean | callValidate(ValidationService vs, ValidationInformation
The non-null validation vi)Must have read lock held |
| private ServiceLocatorImpl. | Returns: A set of descriptors that is being removed fromthe configurationThe configuration that contains the proposed modifications dci)Checks the configuration operation before anything happens to the internal data structures. |
| private void | |
| pack-priv void | |
| pack-priv void | |
| public <T> T | create(Class<T> createMe)
Implements org. This method will analyze the given class, and create it if can. |
| public <T> T | create(Class<T> createMe, String strategy)
Implements org. This method will analyze the given class, and create it if can. |
| public <U> U | createAndInitialize(Class<U> createMe)
Implements org. Creates, injects and postConstructs, all in one |
| public <U> U | createAndInitialize(Class<U> createMe, String strategy)
Implements org. Creates, injects and postConstructs, all in one |
| private static boolean | |
| private void | |
| private static List | |
| public <T> List | getAllServiceHandles(Class<T> contractOrImpl, Annotation... qualifiers)
Implements org. Gets a list of |
| public List | getAllServiceHandles(Type contractOrImpl, Annotation... qualifiers)
Implements org. Gets a list of |
| public List | getAllServiceHandles(Filter searchCriteria)
Implements org. Gets a list of |
| public List | getAllServiceHandles(Annotation qualifier, Annotation... qualifiers)
Implements org. Gets a list of |
| public <T> List | getAllServices(Class<T> contractOrImpl, Annotation... qualifiers)
Implements org. Gets all services from this locator that implement this contract or have this implementation and have the provided qualifiers
Use this method only if destroying the service is not important,
otherwise use |
| public <T> List | getAllServices(Type contractOrImpl, Annotation... qualifiers)
Implements org. Gets all services from this locator that implement this contract or have this implementation and have the provided qualifiers
Use this method only if destroying the service is not important,
otherwise use |
| public <T> List | getAllServices(Annotation qualifier, Annotation... qualifiers)
Implements org. Gets all services from this locator that have the provided qualifiers
Use this method only if destroying the services is not important,
otherwise use |
| public List | getAllServices(Filter searchCriteria)
Implements org. Gets all services from this locator that match the provided
Use this method only if destroying the service is not important,
otherwise use This method should also be used with care to avoid classloading a large number of services |
| pack-priv List | getAllUnqualifiedServiceHandles(Type contractOrImpl, Unqualified unqualified, boolean isIterable, Annotation... qualifiers)
|
| private LinkedHashSet | |
| pack-priv ClassAnalyzer | |
| private static long | |
| public ActiveDescriptor | getBestDescriptor(Filter filter)
Implements org. Gets the descriptor that best matches this filter, taking ranking and service id into account |
| pack-priv ClassReflectionHelper | |
| public String | getDefaultClassAnalyzerName()
Implements org. Gets the name of the default class analyzer service |
| public Unqualified | getDefaultUnqualified()
Implements org. This returns the default |
| private List | getDescriptors(Filter filter, Injectee onBehalfOf, boolean getParents, boolean doValidation, boolean getLocals)
|
| public List | getDescriptors(Filter filter)
Implements org. Gets the list of descriptors that match the given filter |
| private Unqualified | |
| pack-priv LinkedList | |
| public ActiveDescriptor | getInjecteeDescriptor(Injectee injectee)
Implements org. This method will first find a descriptor for this injectee, and then reify that descriptor. |
| pack-priv InjectionResolver | |
| pack-priv InjectionResolver | |
| pack-priv List | |
| public long | getLocatorId()
Implements org. This returns the unique locator ID for this locator. |
| private ServiceLocatorImpl | |
| public String | getName()
Implements org. Returns the name of this ServiceLocator |
| private static String | |
| public boolean | getNeutralContextClassLoader()
Implements org. This returns the value of neutralContextClassLoader. |
| pack-priv long | |
| pack-priv int | |
| pack-priv int | |
| public ServiceLocator | getParent()
Implements org. Gets the parent service locator for this locator |
| pack-priv PerLocatorUtilities | |
| pack-priv int | |
| public <T> T | getService(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root)
Implements org.
Deprecated
This method should be called by code resolving injectee's on behalf of some
root service, usually by an implementation of |
| public <T> T | getService(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root, Injectee originalRequest)
Implements org. This method should be called by code resolving injectee's on behalf of some
root service, usually by an implementation of |
| public <T> T | getService(Class<T> contractOrImpl, Annotation... qualifiers)
Implements org. Gets the best service from this locator that implements this contract or has this implementation
Use this method only if destroying the service is not important,
otherwise use |
| public <T> T | getService(Type contractOrImpl, Annotation... qualifiers)
Implements org. Gets the best service from this locator that implements this contract or has this implementation
Use this method only if destroying the service is not important,
otherwise use |
| public <T> T | getService(Class<T> contractOrImpl, String name, Annotation... qualifiers)
Implements org. Gets the best service from this locator that implements this contract or has this implementation and has the given name
Use this method only if destroying the service is not important,
otherwise use |
| public <T> T | getService(Type contractOrImpl, String name, Annotation... qualifiers)
Implements org. Gets the best service from this locator that implements this contract or has this implementation and has the given name
Use this method only if destroying the service is not important,
otherwise use |
| pack-priv int | |
| pack-priv int | |
| public <T> ServiceHandle | getServiceHandle(ActiveDescriptor<T> activeDescriptor, Injectee injectee)
Implements org. Gets a |
| public <T> ServiceHandle | getServiceHandle(ActiveDescriptor<T> activeDescriptor)
Implements org. Gets a |
| public <T> ServiceHandle | getServiceHandle(Class<T> contractOrImpl, Annotation... qualifiers)
Implements org. Gets a |
| public <T> ServiceHandle | getServiceHandle(Type contractOrImpl, Annotation... qualifiers)
Implements org. Gets a |
| public <T> ServiceHandle | getServiceHandle(Class<T> contractOrImpl, String name, Annotation... qualifiers)
Implements org. Gets a |
| public <T> ServiceHandle | getServiceHandle(Type contractOrImpl, String name, Annotation... qualifiers)
Implements org. Gets a |
| private <T> ServiceHandleImpl | |
| public ServiceLocatorState | getState()
Implements org. Returns the current state of this service locator. |
| pack-priv <T> T | getUnqualifiedService(Type contractOrImpl, Unqualified unqualified, boolean isIterable, Annotation... qualifiers)
This method is only called from the get of IterableProvider. |
| pack-priv <T> ServiceHandle | getUnqualifiedServiceHandle(Type contractOrImpl, Unqualified unqualified, boolean isIterable, Annotation... qualifiers)
|
| pack-priv boolean | |
| private ServiceLocatorImpl. | |
| public void | inject(Object injectMe)
Implements org. This will analyze the given object and inject into its fields and methods. |
| public void | inject(Object injectMe, String strategy)
Implements org. This will analyze the given object and inject into its fields and methods. |
| private List | internalGetAllServiceHandles(Type contractOrImpl, Unqualified unqualified, boolean getHandles, boolean isIterable, Annotation... qualifiers)
|
| private <T> ActiveDescriptor | internalGetDescriptor(Injectee onBehalfOf, Type contractOrImpl, String name, Unqualified unqualified, boolean isIterable, Annotation... qualifiers)
|
| private <T> ActiveDescriptor | internalGetDescriptor(Injectee onBehalfOf, Type contractOrImpl, String name, Unqualified unqualified, boolean isIterable, boolean calledFromSecondChanceResolveMethod, Annotation... qualifiers)
|
| private ActiveDescriptor | |
| private <T> T | internalGetService(Type contractOrImpl, String name, Unqualified unqualified, Annotation... qualifiers)
|
| private <T> T | internalGetService(Type contractOrImpl, String name, Unqualified unqualified, boolean calledFromSecondChanceResolveMethod, Annotation... qualifiers)
|
| private <T> ServiceHandleImpl | internalGetServiceHandle(ActiveDescriptor<T> activeDescriptor, Type requestedType, Injectee originalRequest)
|
| pack-priv boolean | |
| pack-priv boolean | |
| public boolean | isShutdown()
Implements org. Returns whether the state of this service locator is shutdown. |
| private Class | |
| private ImmediateResults | narrow(ServiceLocator locator, List<SystemDescriptor<?>> candidates, Type requiredType, String name, Injectee injectee, boolean onlyOne, boolean doValidation, NarrowResults cachedResults, Filter filter, Annotation... qualifiers)
|
| public void | postConstruct(Object postConstructMe)
Implements org. This will analyze the given object and call the postConstruct method. |
| public void | postConstruct(Object postConstructMe, String strategy)
Implements org. This will analyze the given object and call the postConstruct method. |
| public void | preDestroy(Object preDestroyMe)
Implements org. This will analyze the given object and call the preDestroy method. |
| public void | preDestroy(Object preDestroyMe, String strategy)
Implements org. This will analyze the given object and call the preDestroy method. |
| private List | |
| private <T> List | |
| private List | |
| public ActiveDescriptor | reifyDescriptor(Descriptor descriptor, Injectee injectee)
Implements org. Converts a descriptor to an ActiveDescriptor. |
| public ActiveDescriptor | reifyDescriptor(Descriptor descriptor)
Implements org. Converts a descriptor to an ActiveDescriptor. |
| private void | |
| private void | |
| pack-priv Context | |
| private void | reup(List<SystemDescriptor<?>> thingsAdded, boolean instanceListenersModified, boolean injectionResolversModified, boolean errorHandlersModified, boolean classAnalyzersModified, boolean dynamicConfigurationListenersModified, HashSet<String> affectedContracts, boolean interceptionServicesModified)
|
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private ActiveDescriptor | |
| public void | setDefaultClassAnalyzerName(String defaultClassAnalyzer)
Implements org. Sets the name of the default class analyzer that should be used for all
|
| public void | setDefaultUnqualified(Unqualified unqualified)
Implements org. This sets the default |
| public void | setNeutralContextClassLoader(boolean neutralContextClassLoader)
Implements org. This sets the value of neutralContextClassLoader. |
| public void | shutdown()
Implements org. This method will shutdown every service associated with this ServiceLocator. |
| public String | |
| pack-priv int | |
| private boolean | Returns: true if every validator returned trueThe descriptor to validate descriptor, Injectee The fella who is being validated (or null) onBehalfOf, Filter filter)Must be called under lock |