-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from antkudruk/develop
Refactored, separated member selection ans member implementation
- Loading branch information
Showing
120 changed files
with
1,095 additions
and
414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
plugins { | ||
id 'java' | ||
id "net.bytebuddy.byte-buddy-gradle-plugin" version "1.10.6" | ||
} | ||
|
||
group 'hz.xorlab' | ||
version '1.0-SNAPSHOT' | ||
|
||
sourceCompatibility = 1.11 | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
compile project(path: ":") | ||
testCompile group: 'junit', name: 'junit', version: '4.12' | ||
compile group: 'net.bytebuddy', name: 'byte-buddy', version: '1.10.6' | ||
|
||
compile group: 'net.bytebuddy', name: 'byte-buddy-gradle-plugin', version: '1.10.6' | ||
} | ||
|
||
byteBuddy { | ||
transformation { | ||
plugin = "com.github.antkudruk.uniformfactory.test.gradleplugin.emptywrapper.interfaceinherited.PluginImpl" | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...mfactory/test/gradleplugin/emptywrapper/interfaceinherited/ClassFactoryGeneratorImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.github.antkudruk.uniformfactory.test.gradleplugin.emptywrapper.interfaceinherited; | ||
|
||
import com.github.antkudruk.uniformfactory.classfactory.ClassFactory; | ||
import com.github.antkudruk.uniformfactory.pluginbuilder.DefaultMetaClassFactory; | ||
|
||
public class ClassFactoryGeneratorImpl extends DefaultMetaClassFactory<Wrapper> { | ||
public ClassFactoryGeneratorImpl() { | ||
super(new ClassFactory.Builder<>(Wrapper.class) | ||
.build()); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ub/antkudruk/uniformfactory/test/gradleplugin/emptywrapper/interfaceinherited/Marker.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.github.antkudruk.uniformfactory.test.gradleplugin.emptywrapper.interfaceinherited; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Inherited; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Retention(RetentionPolicy.CLASS) | ||
@Target(ElementType.TYPE) | ||
@Inherited | ||
public @interface Marker { | ||
} |
8 changes: 8 additions & 0 deletions
8
...ub/antkudruk/uniformfactory/test/gradleplugin/emptywrapper/interfaceinherited/Origin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.github.antkudruk.uniformfactory.test.gradleplugin.emptywrapper.interfaceinherited; | ||
|
||
@Marker | ||
public interface Origin { | ||
default Wrapper getWrapper() { | ||
throw new RuntimeException("Wrapper method hasn't been implemented."); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...ntkudruk/uniformfactory/test/gradleplugin/emptywrapper/interfaceinherited/OriginImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.github.antkudruk.uniformfactory.test.gradleplugin.emptywrapper.interfaceinherited; | ||
|
||
@Marker | ||
public class OriginImpl implements Origin { | ||
} |
14 changes: 14 additions & 0 deletions
14
...ntkudruk/uniformfactory/test/gradleplugin/emptywrapper/interfaceinherited/PluginImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.github.antkudruk.uniformfactory.test.gradleplugin.emptywrapper.interfaceinherited; | ||
|
||
import com.github.antkudruk.uniformfactory.pluginbuilder.WrapperPlugin; | ||
|
||
public class PluginImpl extends WrapperPlugin<Wrapper> { | ||
public PluginImpl() { | ||
super( | ||
Origin.class, | ||
Wrapper.class, | ||
Marker.class, | ||
"examplePlugin", | ||
ClassFactoryGeneratorImpl.class); | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
...b/antkudruk/uniformfactory/test/gradleplugin/emptywrapper/interfaceinherited/Wrapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.github.antkudruk.uniformfactory.test.gradleplugin.emptywrapper.interfaceinherited; | ||
|
||
public interface Wrapper { | ||
} |
13 changes: 13 additions & 0 deletions
13
...antkudruk/uniformfactory/test/gradleplugin/emptywrapper/interfaceinherited/EmptyTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.github.antkudruk.uniformfactory.test.gradleplugin.emptywrapper.interfaceinherited; | ||
|
||
import org.junit.Test; | ||
|
||
public class EmptyTest { | ||
|
||
@SuppressWarnings("ConstantConditions") | ||
@Test | ||
public void test() { | ||
OriginImpl origin = new OriginImpl(); | ||
assert Wrapper.class.isAssignableFrom(origin.getWrapper().getClass()); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
gradle-listing-1-3-custom-select-type-criteria/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
plugins { | ||
id 'java' | ||
id "net.bytebuddy.byte-buddy-gradle-plugin" version "1.10.6" | ||
} | ||
|
||
group 'hz.xorlab' | ||
version '1.0-SNAPSHOT' | ||
|
||
sourceCompatibility = 1.11 | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
compile project(path: ":") | ||
testCompile group: 'junit', name: 'junit', version: '4.12' | ||
compile group: 'net.bytebuddy', name: 'byte-buddy', version: '1.10.6' | ||
|
||
compile group: 'net.bytebuddy', name: 'byte-buddy-gradle-plugin', version: '1.10.6' | ||
} | ||
|
||
byteBuddy { | ||
transformation { | ||
plugin = "com.github.antkudruk.uniformfactory.test.gradleplugin.emptywrapper.interfacebased.PluginImpl" | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...iformfactory/test/gradleplugin/emptywrapper/interfacebased/ClassFactoryGeneratorImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.github.antkudruk.uniformfactory.test.gradleplugin.emptywrapper.interfacebased; | ||
|
||
import com.github.antkudruk.uniformfactory.classfactory.ClassFactory; | ||
import com.github.antkudruk.uniformfactory.pluginbuilder.DefaultMetaClassFactory; | ||
|
||
public class ClassFactoryGeneratorImpl extends DefaultMetaClassFactory<Wrapper> { | ||
public ClassFactoryGeneratorImpl() { | ||
super(new ClassFactory.Builder<>(Wrapper.class) | ||
.build()); | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...druk/uniformfactory/test/gradleplugin/emptywrapper/interfacebased/ExplicitOriginImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.github.antkudruk.uniformfactory.test.gradleplugin.emptywrapper.interfacebased; | ||
|
||
public class ExplicitOriginImpl implements Origin { | ||
@Override | ||
public Wrapper getWrapper() { | ||
return null; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...github/antkudruk/uniformfactory/test/gradleplugin/emptywrapper/interfacebased/Origin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.github.antkudruk.uniformfactory.test.gradleplugin.emptywrapper.interfacebased; | ||
|
||
public interface Origin { | ||
default Wrapper getWrapper() { | ||
throw new RuntimeException("The method should be implemented by the plugin. Please, specify the plugin un your build script."); | ||
} | ||
} |
Oops, something went wrong.