InterfaceDetectorpublic abstract class AutoExport extends org.springframework.core.enums.StaticLabeledEnum implements InterfaceDetector
OsgiServiceFactoryBean for registering object as OSGi
services.| Modifier and Type | Field and Description |
|---|---|
static AutoExport |
ALL_CLASSES
Deprecated.
Export every class, inherited or implemented by the given target.
|
static AutoExport |
CLASS_HIERARCHY
Deprecated.
Export the class hierarchy (all classes inherited by the given target excluding Object.class)
|
static AutoExport |
DISABLED
Deprecated.
Do not export anything
|
static AutoExport |
INTERFACES
Deprecated.
Export all interfaces (and their hierarchy) implemented by the given class
|
| Modifier | Constructor and Description |
|---|---|
private |
AutoExport(int code,
java.lang.String label)
Deprecated.
Constructs a new
AutoExport instance. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?>[] |
detect(java.lang.Class<?> targetClass)
Deprecated.
Detects the 'interfaces' of the given target, suitable for OSGi service export.
|
(package private) abstract java.lang.Class<?>[] |
getExportedClasses(java.lang.Class<?> targetClass)
Deprecated.
Determines the exported classes given a certain target class.
|
getCode, getLabel, readResolve, shortValuepublic static final AutoExport DISABLED
public static final AutoExport INTERFACES
public static final AutoExport CLASS_HIERARCHY
public static final AutoExport ALL_CLASSES
CLASS_HIERARCHY +
INTERFACESprivate AutoExport(int code,
java.lang.String label)
AutoExport instance.code - label - abstract java.lang.Class<?>[] getExportedClasses(java.lang.Class<?> targetClass)
targetClass - class to be exported into OSGipublic final java.lang.Class<?>[] detect(java.lang.Class<?> targetClass)
InterfaceDetectordetect in interface InterfaceDetectortargetClass - target class