-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Implemented the possibility to add custom path functions #1015
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Implemented the possibility to add custom path functions #1015
Conversation
Wow that would be great to add, Someone is going to check it? |
if (!PathFunction.class.isAssignableFrom(function)){ | ||
throw new InvalidClassException("Function with name: " + name + "must be a instance of PathFunction class"); | ||
} | ||
FUNCTIONS.put(name,function); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should not be able to override existing built-in functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally agree, I will change the method to avoid override built-in functions
请问这个合并了吗 |
waiting this PR |
if (!PathFunction.class.isAssignableFrom(function)){ | ||
throw new InvalidClassException("Function with name: " + name + "must be a instance of PathFunction class"); | ||
} | ||
FUNCTIONS.put(name,function); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently functions are created in this map. Once a function is registered, it will be available everywhere. I think it is necessary to be able to separate contexts by place of use.
No description provided.