public interface ModuleAgent
Usage:
specialistsBroker.requireSpecialist
(ModuleAgent.TYPE
).getClassLoader()
.
Modifier and Type | Field and Description |
---|---|
static SpecialistType<ModuleAgent> |
TYPE
Specialist providing means to load public classes.
|
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getClassLoader()
Returns a class loader instance which is capable of loading all global module classes.
|
Collection<ComponentDescriptor> |
getComponents(Class<?> type)
Returns all components which implements or extends the given type.
|
<T> Class<? extends T> |
getTypeForName(String name,
Class<T> type)
Returns the exported class that matches the given interface
type and name . |
static final SpecialistType<ModuleAgent> TYPE
@NotNull ClassLoader getClassLoader()
@NotNull Collection<ComponentDescriptor> getComponents(Class<?> type)
type
- The requested type.descriptors
.@Nullable <T> Class<? extends T> getTypeForName(String name, Class<T> type)
type
and name
. Returns null
if no match is found.name
- name to matchtype
- interface to matchnull
if there is no matching exported classIllegalStateException
- if loading of the exported class fails.Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500