|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface ModuleAgent
Interface for a class that brokers a class loader instance which is capable of loading public classes.
Usage:
specialistsBroker.requireSpecialist(ModuleAgent.TYPE).getClassLoader().
Attention: This part of the API is preliminary and may change in future versions.
| Field Summary | |
|---|---|
static SpecialistType<ModuleAgent> |
TYPE
Type token, use this for SpecialistsBroker.requestSpecialist(de.espirit.firstspirit.agency.SpecialistType)
or
SpecialistsBroker.requireSpecialist(de.espirit.firstspirit.agency.SpecialistType). |
| Method Summary | ||
|---|---|---|
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. |
|
|
getTypeForName(String name,
Class<T> type)
Returns the exported class that matches the given interface type and name. |
|
| Field Detail |
|---|
static final SpecialistType<ModuleAgent> TYPE
SpecialistsBroker.requestSpecialist(de.espirit.firstspirit.agency.SpecialistType)
or
SpecialistsBroker.requireSpecialist(de.espirit.firstspirit.agency.SpecialistType).
| Method Detail |
|---|
@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 match
null if there is no matching exported class
IllegalStateException - if loading of the exported class fails.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||