| Package | Description | 
|---|---|
| ej.basictool | |
| ej.bon | |
| ej.service | |
| ej.service.loader | |
| ej.service.registry | |
| java.lang | |
| java.lang.annotation | 
| Modifier and Type | Method and Description | 
|---|---|
static <T> T[] | 
ArrayTools.copy(Object[] array,
    Class<T[]> type)
Deprecated. 
 
Use  
Arrays.copyOf(Object[], int, Class) instead. | 
static <T> T[] | 
ArrayTools.copy(Object[] array,
    int pointer,
    Class<T[]> type)
Deprecated. 
 
Use  
Arrays.copyOf(Object[], int, Class) instead. | 
static <T> T[] | 
ArrayTools.createNewArray(Class<T[]> type,
              int length)
Deprecated. 
 
Use  
Util.newArray(Class, int) instead. | 
| Modifier and Type | Method and Description | 
|---|---|
static Class<?> | 
Constants.getClass(String name)
Gets a  
Class constant. | 
| Modifier and Type | Method and Description | 
|---|---|
static <T> T[] | 
Util.newArray(Class<T[]> type,
        int length)
Allocates a new array of object references from the given array type and
 length. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Class<?> | 
ServicePermission.getService()
Gets the service handled by this permission. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static <T> T | 
ServiceFactory.getRequiredService(Class<T> service)
Gets the instance of the given service. 
 | 
<T> T | 
ServiceLoader.getService(Class<T> service)
Gets the instance of the given service. 
 | 
static <T> T | 
ServiceFactory.getService(Class<T> service)
Gets the instance of the given service. 
 | 
static <T> T | 
ServiceFactory.getService(Class<T> service,
          Class<? extends T> defaultImplementation)
Gets the instance of the given service in the service loader then in the service registry (see
  
ServiceFactory.getService(Class). | 
static <T> T | 
ServiceFactory.getService(Class<T> service,
          Class<? extends T> defaultImplementation)
Gets the instance of the given service in the service loader then in the service registry (see
  
ServiceFactory.getService(Class). | 
<T> void | 
ServiceRegistry.register(Class<T> service,
        T instance)
Registers a service instance. 
 | 
<T> void | 
ServiceRegistry.unregister(Class<T> service,
          T instance)
Unregisters a service instance. 
 | 
| Constructor and Description | 
|---|
ServicePermission(String parentName,
                 Class<?> service,
                 String action)
Creates a permission for the given service. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected <T> void | 
SimpleServiceLoader.checkServicePermission(Class<T> service,
                      String action)
Checks that an action on a service is permitted. 
 | 
protected <T> T | 
SimpleServiceLoader.createAlternativeImplementation(Class<T> service)
Creates an implementation for the given service and save it in the cache. 
 | 
protected <T> T | 
DependencyInjectionServiceLoader.createAlternativeImplementation(Class<T> service)  | 
static <T> T | 
ServiceLoaderHelper.createClassInstance(Class<T> parent,
                   Class<? extends T> clazz)
Gets an instance of a class. 
 | 
static <T> T | 
ServiceLoaderHelper.createClassInstance(Class<T> parent,
                   Class<? extends T> clazz)
Gets an instance of a class. 
 | 
static <T> T | 
ServiceLoaderHelper.createClassInstance(Class<T> parent,
                   String className)
Gets an instance of a class, based on its name. 
 | 
<T> T | 
SimpleServiceLoader.getService(Class<T> service)  | 
<T> T | 
CompositeServiceLoader.getService(Class<T> service)  | 
protected <T> void | 
SimpleServiceLoader.putService(Class<T> service,
          T instance)
Put a service in the services map in a synchronized context. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
<T> void | 
SimpleServiceRegistry.register(Class<T> service,
        T implementation)  | 
<T> void | 
SimpleServiceRegistry.unregister(Class<T> service,
          T implementation)  | 
| Modifier and Type | Method and Description | 
|---|---|
<U> Class<? extends U> | 
Class.asSubclass(Class<U> clazz)
Casts this  
Class object to represent a subclass of the class
 represented by the specified class object. | 
static Class<?> | 
Class.forName(String className)
Returns the  
Class object associated with the class or interface with the given string
 name. | 
Class<?> | 
Object.getClass()
Returns the runtime class of this  
Object. | 
Class<? super T> | 
Class.getSuperclass()
Returns the  
Class representing the superclass of the entity (class, interface, primitive
 type or void) represented by this Class. | 
| Modifier and Type | Method and Description | 
|---|---|
<U> Class<? extends U> | 
Class.asSubclass(Class<U> clazz)
Casts this  
Class object to represent a subclass of the class
 represented by the specified class object. | 
boolean | 
Class.isAssignableFrom(Class<?> cls)
Determines if the class or interface represented by this  
Class object is either the same
 as, or is a superclass or superinterface of, the class or interface represented by the specified
 Class parameter. | 
static <T extends Enum<T>> | 
Enum.valueOf(Class<T> enumType,
       String name)
This method is available for compilation purpose. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Class<? extends Annotation> | 
Annotation.annotationType()
Returns the annotation type of this annotation. 
 |