Class MixinPlatformAgentAbstract

    • Constructor Detail

      • MixinPlatformAgentAbstract

        protected MixinPlatformAgentAbstract()
        Ctor
    • Method Detail

      • accept

        public IMixinPlatformAgent.AcceptResult accept​(MixinPlatformManager manager,
                                                       IContainerHandle handle)
        Description copied from interface: IMixinPlatformAgent
        Accept and bind to a container handle. This method is called for agents hosted by MixinContainer and the agent should react accordingly. If the agent is not able to delegate for container handles of the supplied type, this method should return false to indicate that the agent should not be added for this container.
        Specified by:
        accept in interface IMixinPlatformAgent
        Parameters:
        manager - platform manager instance
        handle - handle to container
        Returns:
        AcceptResult representing this agent's acceptance of the supplied container
      • prepare

        public void prepare()
        Description copied from interface: IMixinPlatformAgent
        Called during pre-initialisation, after all tweakers and tweak containers have been added to the environment.
        Specified by:
        prepare in interface IMixinPlatformAgent
      • initPrimaryContainer

        public void initPrimaryContainer()
        Description copied from interface: IMixinPlatformAgent
        Called from inject in the parent tweaker but only called on the primary tweak container. This is useful if the agent needs to perform some environment-specific setup just once.
        Specified by:
        initPrimaryContainer in interface IMixinPlatformAgent
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • invokeStringMethod

        protected static java.lang.String invokeStringMethod​(java.lang.ClassLoader classLoader,
                                                             java.lang.String className,
                                                             java.lang.String methodName)
      • wire

        @Deprecated
        public void wire​(MixinEnvironment.Phase phase,
                         IConsumer<MixinEnvironment.Phase> phaseConsumer)
        Deprecated.
        temporary
        Temp wiring. Called when the initial phase is spun up in the environment.
        Parameters:
        phase - Initial phase
        phaseConsumer - Delegate for the service (or agents) to trigger later phases
      • unwire

        @Deprecated
        public void unwire()
        Deprecated.
        temporary
        Called when the DEFAULT phase is started