Interface IDynamicComponent

    • Method Detail

      • attrs

        @Nonnull
        com.helger.commons.collection.attr.IStringMap attrs()
        Returns:
        The attributes of this component.
      • getName

        @Nullable
        String getName()
        Returns a name for the component. These names are not guaranteed to be unique, and are intended for display and logging. Generally this is the class name of the Component object, without package information.
        Returns:
        name of the component
      • getSession

        @Nonnull
        IAS2Session getSession()
        Returns the Session used to initialize this Component. The returned session is also used to locate other components if needed.
        Returns:
        this component's session. Never null.
      • initDynamicComponent

        void initDynamicComponent​(@Nonnull
                                  IAS2Session aSession,
                                  @Nullable
                                  com.helger.commons.collection.attr.IStringMap aParameters)
                           throws AS2Exception
        After creating a Component object, this method should be called to set any parameters used by the component. Component implementations typically have required parameter checking and code to start timers and threads within this method.
        Parameters:
        aSession - the component uses this object to access other components
        aParameters - configuration values for the component. All parameters will be stored as attributes of this component. All attributes existing before this method is called will be removed!
        Throws:
        AS2Exception - If an error occurs while initializing the component
        AS2InvalidParameterException - If a required parameter is null in the parameters Map
        See Also:
        IAS2Session