Giter Club home page Giter Club logo

kumuluzee-graphql's People

Contributors

evader1337 avatar jmezna avatar mbjuric avatar rokcej avatar urbim avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

rokcej

kumuluzee-graphql's Issues

Standard classes processed as CDI bean?

Hi, I've done a test with CDI and bean-discovery-mode set to annotated. In that context, standard Java classes (non-CDI beans) annotated with @GraphQLClass are treated as non-contextual CDI beans (based on Unmanaged CDI bean) in GraphQLServlet and implicitly benefit from some CDI injection. Is it a an expected behavior?
Furthermore, CDI beans are also instanciated as non-contextual. And according to that article, it is said that "Unmanaged.UnmanagedInstances created by this class are not suitable for sharing between threads".
My proposal would be to instanciate non CDI-beans using Java new() and to get references on CDI beans using the BeanManager. What do you think?

Potential bug in GraphQLServlet?

I think there is a bug in GraphQLServlet when more than 1 GraphApplicationClass has been discovered:

  • A warning log message is produced on line 96,
  • But the process flow is not interrupted and applicationClass is not initialized,
  • this can result in a NullPointerException on line 101.

Correct me if I'm wrong.

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.