Giter Club home page Giter Club logo

jannocessor's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

darknessitachi

jannocessor's Issues

The cloning method copy() fails in some circumstances

When the cloning method copy() is called in some circumstances for some code 
model objects, an exception is thrown saying it couldn't create a correct 
clone. 

This problem needs further investigation...

Original issue reported on code.google.com by nikolce.mihajlovski on 5 Dec 2011 at 6:13

Passing destinationPackage as a config option from maven plugin configuration to Processors

In jannocessor demo org.jannocessor.config.Processors passes destination 
package to generators, for example: new BeanGenerator(PKG_BEAN, DEBUG_MODE). I 
would like to be able to configure PKG_BEAN in pom.xml. In this case I could 
have single Processors and several generators in single module that could be 
used in other modules just providing destination package. When I try to have 
Processors in the same module in which the generated files are located I get a 
hot swap exception. 
And I could not find any way to get access to any options in Processors or 
CodeProcessor.

Thanks      

Original issue reported on code.google.com by [email protected] on 28 Mar 2013 at 8:20

Create Maven plugin to run JAnnocessor

Currently maven-annotation-plugin is used to run JAnnocessor as APT-based 
annotation processor. It is a great plugin and proved to be very useful for 
configuring and running JAnnocessor, but its generic annotation processing 
nature limits the possibilities of JAnnocessor execution.

Thus, a new Maven plugin is needed that will basically do the same as 
maven-annotation-plugin, but will run specifically JAnnocessor, and can be 
extended with more JAnnocessor-specific functionalities.

The end result will be simplified Maven configuration and more configuration 
options.

Original issue reported on code.google.com by nikolce.mihajlovski on 5 Dec 2011 at 6:48

Consider switching to less restrictive license such as Apache v2

I have an open-source Apache License v2 library that many companies use.  I'd 
like to consider using jannocessor as part of that library.  However, because 
jannocessor is GPLv3, I think that including is as a dependency may scare off 
some of my users.

I imagine that many users who write closed-source software would also like to 
use this library but can't because of the license.

Please consider switching to a more flexible license.

Original issue reported on code.google.com by [email protected] on 2 Mar 2014 at 8:43

[question] Can jannocessor do this kind of generation?

The examples are all about using jannocessor to generate new classes, but I 
wonder if it can do this kind of work.

Original code:

    @MyBuilder
    public String show(String id) {
        Question question = Question.findById(id);
        render(question);
    }

With custom `MyBuilder` created by jannocessor, the generated code will be:

    @MyBuilder
    public String show(String id) {
        Question question = Question.findById(id);

        Map<String,Object> data = new HashMap<String,Object>();
        data.put("question", question);
        renderWithData(data);
    }

`MyBuilder` will read the source code of `show` method, and change part of it. 
Is it available?

Original issue reported on code.google.com by [email protected] on 20 Nov 2012 at 2:59

Update the version in getting started wiki page

Currently it shows using 0.6.6 which is not so bad but it seems that 
jsyntaxpane:jsyntaxpane:jar:0.9.5 is not in the central. Updating the version 
to the currently last one 0.6.8 solves this dependency problem.

Original issue reported on code.google.com by [email protected] on 9 Dec 2011 at 9:07

Release JAnnocessor API and Extras under APL 2 as "JAnnocessor Client"

Despite it is GPL-licensed, JAnnocessor should be available for 
processing/generation of GPL-incompatible source code, because it is used as a 
build technology.

Nevertheless, part of JAnnocessor (e.g. API, Extras) is required as project 
dependency for most usage scenarios. Although this part is required at build 
time only, it should be distinguished as "JAnnocessor Client" and released 
under APL 2 for convenience.

Original issue reported on code.google.com by nikolce.mihajlovski on 1 Mar 2012 at 6:54

Desactivate UI

How to desactivate the UI to display when building with maven ?

Original issue reported on code.google.com by [email protected] on 21 Oct 2012 at 10:28

Model the "import" statements for fine-grained control

The "imports" functionality needs to be modelled into the code model, to allow 
proper control of the generation of import statements in the Java code. 

Example:

JavaClass model = New.classs("MyClass");
model.getImports().add("java.util.Date");

Should render:

import java.util.Date;

public class MyClass {

}

Original issue reported on code.google.com by nikolce.mihajlovski on 26 Jan 2012 at 10:40

Methods.getter() makes incorrect getter name for booleans

For boolean fields Methods.getter() returns method with name that starts with 
"get" instead of "is". 

For example, for

private boolean disabled;

getter and setter should be:

    public boolean isDisabled() {
        return disabled;
    }

    public void setDisabled(boolean disabled) {
        this.disabled = disabled;
    }


Original issue reported on code.google.com by [email protected] on 29 Mar 2013 at 10:27

Merging the generated with existing source code

An option to merge the generated with existing source code is needed. This 
could be designed as a strategy, giving flexibility to the users to implement 
their own code merging strategy. Some simple merging strategies should be 
included for convenience.

Original issue reported on code.google.com by nikolce.mihajlovski on 5 Dec 2011 at 7:05

Different output directories / modules for different generators

I would like to be able to configure so that different generators use different 
folders as output folders. For example, I have generated mappers that depend on 
domain models. But DTOs should be used independently as well, for example, by a 
REST web services client that does need to depend on persistent models.  

Thanks

Original issue reported on code.google.com by [email protected] on 8 Apr 2013 at 10:33

Add "JavaDoc" functionality to the code model

The "JavaDoc" functionality needs to be modelled into the code model, to allow 
easier generation of JavaDoc. 

Example:

JavaClass model = New.classs("MyClass");
model.getJavaDoc().setHardcoded("This is a simple JavaDoc.");

Should render:

/**
 * This is a simple JavaDoc.
 */
public class MyClass {

}

Original issue reported on code.google.com by nikolce.mihajlovski on 5 Dec 2011 at 7:17

java.lang.LinkageError: loader constraint violation

Hi,

I'm trying your annotation processing on a test project. 
I've been following the tutorial by creating the 
org.jannocessor.config.Processors class in the same project as the annotated 
classes to process.

It keeps on failing by throwing following exception:

[INFO] diagnostic Note: Starting processing iteration...
[INFO] diagnostic Note: Total 1 elements were annotated with @Test

An annotation processor threw an uncaught exception.
Consult the following stack trace for details.
[ERROR] error on execute: error during compilation
java.lang.LinkageError: loader constraint violation: loader (instance of 
com/sun/tools/javac/util/CloseableURLClassLoader) previously initiated loading 
for a different type with name "org/jannocessor/config/Processors"
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.lang.Class.getDeclaringClass(Native Method)
    at java.lang.Class.getEnclosingClass(Class.java:1085)
    at java.lang.Class.getCanonicalName(Class.java:1169)
    at org.jannocessor.processor.JannocessorProcessor.processElements(JannocessorProcessor.java:187)
    at ...

I've enclosed the project's pom file... There's probably something to exclude 
at some point to avoid the evil twin... I'm trying to get my hand on in the 
meantime.

It would be much appreciated If you have any idea where the problem might come 
from..

Thanks for your help,
Sallah

Original issue reported on code.google.com by [email protected] on 9 Nov 2012 at 10:07

Attachments:

Interface methods sometimes not rendered

The methods added to an interface model sometimes are not rendered.

Further investigation is needed...

Original issue reported on code.google.com by nikolce.mihajlovski on 5 Dec 2011 at 7:28

Use attributes of annotations

It would be useful to provide access to attributes of the annotations used to 
generate code.

For example, in the GenerateFacade annotation, I'd like to add a name 
attribute. So it could be possible to generate different facades based on the 
name provided.

Can't find a way to access attributes of an annotation from the JavaInterface 
type.

Original issue reported on code.google.com by [email protected] on 21 Oct 2012 at 10:24

A global DEBUG flag would be useful

A global DEBUG flag will be useful, to configure the default debug mode for all 
the code processors. However, each code processor should be able to override 
this configuration for itself.

Original issue reported on code.google.com by nikolce.mihajlovski on 5 Dec 2011 at 6:36

Name.getUncapitalized() returns incorrect value in some cases

The function Name.getUncapitalized() returns incorrect value when the first 
part of the capitalized name contains more than one upper case letters (e.g. 
IPAddress).

Examples:

IPAddress => iPAddress (incorrect, should be ipAddress)
SOMEName => sOMEName (incorrect, should be someName)

OtherName => otherNAme (correct)

Original issue reported on code.google.com by nikolce.mihajlovski on 5 Dec 2011 at 11:19

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.