Class Registration
- java.lang.Object
-
- net.ssehub.easy.instantiation.aspectj.Registration
-
- All Implemented Interfaces:
IRegistration
public class Registration extends java.lang.Object implements IRegistration
Registers the Java additions to VIL.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private static booleanregistered
-
Constructor Summary
Constructors Constructor Description Registration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidactivate(org.osgi.service.component.ComponentContext context)Private method to activate plugin.static java.lang.StringcheckEnvironment()Checks whether the AspectJ instantiator will work in this environment, e.g., not due to Java 9.protected voiddeactivate(org.osgi.service.component.ComponentContext context)Private method to to de-activate plugin.static voidregister()Registers the Java artifacts and instantiators.
-
-
-
Method Detail
-
register
public static final void register()
Registers the Java artifacts and instantiators.
-
activate
protected void activate(org.osgi.service.component.ComponentContext context)
Private method to activate plugin.- Parameters:
context- Context.
-
deactivate
protected void deactivate(org.osgi.service.component.ComponentContext context)
Private method to to de-activate plugin.- Parameters:
context- Context.
-
checkEnvironment
public static java.lang.String checkEnvironment()
Checks whether the AspectJ instantiator will work in this environment, e.g., not due to Java 9.- Returns:
- a message if the instantiator will not work, null else
-
-