Git Product home page Git Product logo

mountiplex's Introduction

Mountiplex

Dev Builds

General Purpose Java Reflection Library

Mountiplex delivers a two-hit solution for accessing the internals of a hidden implementation in Java. A type conversion engine allows dynamic type changing, which can be used to translate between hidden and API types. A reflection template engine allows a way to declare the internal structure of the implementation.

An example template declaration that shows most of what is possible:

package some.secret.project;

import my.api.wrapper.Secret;

class SecretService {
#if version >= 1.1
    private int secretCount;
#else
    private int secretCount:nSecrets;
#endif

    public (Secret) TSecret getSecret(String name);
    public String getStatus();

    public String getSecretName(String name) {
        return instance.getSecret(name).getName();
    }

    <code>
    public void clearSecretCount() {
        setSecretCount(0);
    }
    </code>
}

At runtime this same declaration file will be parsed, preprocessing macros are executed and then the whole thing is loaded into a compiletime generated abstract model of the SecretService called SecretServiceHandle. Using this handle it is possible to interact with the implementation safely, using the name/type translations as declared in the template file.

The handle implementation is fully generated at runtime, avoiding reflection where possible to allow for maximum performance code execution.

Mountiplex is primarily used by BKCommonLib to interact with the Minecraft Server internals.

This product includes software developed by the Apache Software Foundation (http://www.apache.org/)

mountiplex's People

Contributors

bergerkiller avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.