Class Registration
java.lang.Object
net.ssehub.easy.instantiation.aspectj.Registration
- All Implemented Interfaces:
net.ssehub.easy.instantiation.core.model.vilTypes.IRegistration
public class Registration
extends Object
implements net.ssehub.easy.instantiation.core.model.vilTypes.IRegistration
Registers the Java additions to VIL.
- Author:
- Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivate(org.osgi.service.component.ComponentContext context) Private method to activate plugin.static StringChecks 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 final voidregister()Registers the Java artifacts and instantiators.
-
Field Details
-
registered
private static boolean registered
-
-
Constructor Details
-
Registration
public Registration()
-
-
Method Details
-
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
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
-