Class Opt4JModule

    • Field Detail

      • SINGLETON

        public static com.google.inject.Scope SINGLETON
        The singleton scope.
    • Constructor Detail

      • Opt4JModule

        public Opt4JModule()
    • Method Detail

      • bindConstant

        public com.google.inject.binder.ConstantBindingBuilder bindConstant​(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
        Bind a value.
        Parameters:
        annotation - the type of annotation of the value
        Returns:
        the constant binding builder that allows a binding
      • bindConstant

        public com.google.inject.binder.ConstantBindingBuilder bindConstant​(java.lang.annotation.Annotation annotation)
        Bind a value.
        Parameters:
        annotation - the annotation of the value
        Returns:
        the constant binding builder that allows a binding
      • configure

        protected void configure()
        Overrides:
        configure in class com.google.inject.AbstractModule
      • multi

        protected void multi​(java.lang.Class<?> clazz)
      • config

        protected abstract void config()
        Configure the module. Bind constants, listeners, and bind arbitrary classes.
        See Also:
        Binder
      • constant

        public static org.opt4j.core.start.Opt4JModule.ConstantImpl constant​(java.lang.String value,
                                                                             java.lang.Class<?> namespace)
        Returns the implementation of the Constant annotation.
        Parameters:
        value - the value
        namespace - the namespace
        Returns:
        the constant annotation
      • bindConstant

        protected com.google.inject.binder.ConstantBindingBuilder bindConstant​(java.lang.String value)
        Bind a Constant.
        Parameters:
        value - the value from the Constant annotation with an empty namespace
        Returns:
        the constant binding builder that allows a binding
      • bindConstant

        public com.google.inject.binder.ConstantBindingBuilder bindConstant​(java.lang.String value,
                                                                            java.lang.Class<?> namespace)
        Bind a constant.
        Parameters:
        value - the value from the Constant
        namespace - the namespace from the Constant
        Returns:
        the constant binding builder that allows a binding
      • addControlListener

        public void addControlListener​(java.lang.Class<? extends ControlListener> listener)
        Parameters:
        listener - the listener to be added