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
    Modifier and Type
    Field
    Description
    private static boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    activate(org.osgi.service.component.ComponentContext context)
    Private method to activate plugin.
    static String
    Checks whether the AspectJ instantiator will work in this environment, e.g., not due to Java 9.
    protected void
    deactivate(org.osgi.service.component.ComponentContext context)
    Private method to to de-activate plugin.
    static final void
    Registers the Java artifacts and instantiators.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static 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