public abstract class MixinPlatformAgentAbstract extends java.lang.Object implements IMixinPlatformAgent
| Modifier and Type | Field and Description |
|---|---|
protected IContainerHandle |
handle
URI to the container
|
protected static org.apache.logging.log4j.Logger |
logger
Logger
|
protected MixinPlatformManager |
manager |
| Modifier | Constructor and Description |
|---|---|
protected |
MixinPlatformAgentAbstract()
Ctor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(MixinPlatformManager manager,
IContainerHandle handle)
Accept and bind to a container handle.
|
java.lang.String |
getPhaseProvider()
Get the phase provider for this agent
|
void |
initPrimaryContainer()
Called from inject in the parent tweaker but only called on
the primary tweak container.
|
void |
inject()
Called from inject in the parent tweaker
|
protected static java.lang.String |
invokeStringMethod(java.lang.ClassLoader classLoader,
java.lang.String className,
java.lang.String methodName) |
void |
prepare()
Called during pre-initialisation, after all tweakers and tweak containers
have been added to the environment.
|
java.lang.String |
toString() |
void |
unwire()
Deprecated.
temporary
|
void |
wire(MixinEnvironment.Phase phase,
IConsumer<MixinEnvironment.Phase> phaseConsumer)
Deprecated.
temporary
|
protected static final org.apache.logging.log4j.Logger logger
protected MixinPlatformManager manager
protected IContainerHandle handle
public boolean accept(MixinPlatformManager manager, IContainerHandle handle)
IMixinPlatformAgentMixinContainer 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.accept in interface IMixinPlatformAgentmanager - platform manager instancehandle - handle to containerpublic java.lang.String getPhaseProvider()
IMixinPlatformAgentgetPhaseProvider in interface IMixinPlatformAgentpublic void prepare()
IMixinPlatformAgentprepare in interface IMixinPlatformAgentpublic void initPrimaryContainer()
IMixinPlatformAgentinitPrimaryContainer in interface IMixinPlatformAgentpublic void inject()
IMixinPlatformAgentinject in interface IMixinPlatformAgentpublic java.lang.String toString()
toString in class java.lang.Objectprotected static java.lang.String invokeStringMethod(java.lang.ClassLoader classLoader,
java.lang.String className,
java.lang.String methodName)
@Deprecated public void wire(MixinEnvironment.Phase phase, IConsumer<MixinEnvironment.Phase> phaseConsumer)
phase - Initial phasephaseConsumer - Delegate for the service (or agents) to trigger
later phases@Deprecated public void unwire()