public PAComponentRepresentativeImpl(ComponentParameters componentParameters) {

    this.componentParameters = componentParameters;
    this.useShortcuts = CentralPAPropertyRepository.PA_COMPONENT_USE_SHORTCUTS.isTrue();

    Type componentType = componentParameters.getComponentType();

    loggerADL.debug(
        "[PAComponentRepresentativeImpl]  FType: "
            + ((PAComponentType) componentType).getFcInterfaceTypes().length);
    loggerADL.debug(
        "[PAComponentRepresentativeImpl] NFType: "
            + ((PAComponentType) componentType).getNfFcInterfaceTypes().length);
    loggerADL.debug(
        "[PAComponentRepresentativeImpl] Config File: "
            + (this.componentParameters.getControllerDescription().configFileIsSpecified()
                ? this.componentParameters
                    .getControllerDescription()
                    .getControllersConfigFileLocation()
                : "---"));

    if ((componentType instanceof PAComponentType)) {
      loggerADL.debug(
          "[PAComponentRepresentativeImpl] GENERAL CREATION of controller interfaces for "
              + this.componentParameters.getName());
      addControllerInterfaces();
    }

    addFunctionalInterfaces();

    componentType = componentParameters.getComponentType();
    loggerADL.debug(
        "[PAComponentRepresentativeImpl] NFType: "
            + ((PAComponentType) componentType).getNfFcInterfaceTypes().length);
    loggerADL.debug("[PAComponentRepresentativeImpl] NFItfs: " + nfItfs.keySet().size());
  }
Exemplo n.º 2
0
 @After
 public void endTest() throws Exception {
   CentralPAPropertyRepository.PA_COMPONENT_USE_SHORTCUTS.setValue(false);
 }
Exemplo n.º 3
0
 @Before
 public void initTest() throws Exception {
   CentralPAPropertyRepository.PA_COMPONENT_USE_SHORTCUTS.setValue(true);
 }