Skip to content

Commit 48f39a3

Browse files
committed
Commit inicial
0 parents  commit 48f39a3

10 files changed

Lines changed: 510 additions & 0 deletions

File tree

.gitignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
HELP.md
2+
.gradle
3+
build/
4+
!gradle/wrapper/gradle-wrapper.jar
5+
!**/src/main/**
6+
!**/src/test/**
7+
8+
### STS ###
9+
.apt_generated
10+
.classpath
11+
.factorypath
12+
.project
13+
.settings
14+
.springBeans
15+
.sts4-cache
16+
17+
### IntelliJ IDEA ###
18+
.idea
19+
*.iws
20+
*.iml
21+
*.ipr
22+
out/
23+
24+
### NetBeans ###
25+
/nbproject/private/
26+
/nbbuild/
27+
/dist/
28+
/nbdist/
29+
/.nb-gradle/
30+
31+
### VS Code ###
32+
.vscode/
33+
34+
/bin/
35+
/codigoSinCommit/

README.MD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Libreria apoyo jsonbeans
2+
3+
Proporciona una implementación de [es.lanyu.commons.servicios.entidad.CargadorIdentificables](https://javadoc.jitpack.io/com/github/lanyuestudio/lanyucommon/master-1fd881e6c8-1/javadoc/es/lanyu/commons/servicios/entidad/CargadorIdentificables.html) para los tipos `es.lanyu.Nombrable` utilizando [jsonbeans v0.9](https://github.com/EsotericSoftware/jsonbeans/releases/tag/0.9)/[libGDX](https://libgdx.badlogicgames.com/ci/nightlies/docs/api/com/badlogic/gdx/utils/Json.html) que es más ligero y nativo para libGDX.

build.gradle

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
plugins {
2+
id 'java'
3+
id 'java-library'
4+
id 'eclipse'
5+
}
6+
7+
project.ext {
8+
lanyuVersion = "v1.0.0"
9+
jsonbeansVersion = "0.9"
10+
}
11+
12+
repositories {
13+
jcenter()
14+
maven { url 'https://jitpack.io' }
15+
}
16+
17+
18+
sourceCompatibility = 1.8
19+
targetCompatibility = 1.8
20+
21+
dependencies {
22+
api "com.github.LanyuEStudio:lanyuCommon:$lanyuVersion"
23+
api "com.github.EsotericSoftware:jsonbeans:$jsonbeansVersion"
24+
}
25+
26+
task sourcesJar(type: Jar, dependsOn: classes) {
27+
classifier = 'sources'
28+
from sourceSets.main.allSource
29+
}
30+
31+
task javadocJar(type: Jar, dependsOn: javadoc) {
32+
classifier = 'javadoc'
33+
from javadoc.destinationDir
34+
}
35+
36+
artifacts {
37+
archives sourcesJar
38+
archives javadocJar
39+
}

gradle/wrapper/gradle-wrapper.jar

57.5 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

gradlew

Lines changed: 185 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 104 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rootProject.name = 'lanyu-json-gdx'
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package es.lanyu.json;
2+
3+
import es.lanyu.commons.identificable.AbstractNombrable;
4+
import es.lanyu.commons.identificable.GestorIdentificables;
5+
import es.lanyu.commons.servicios.entidad.CargadorIdentificables;
6+
7+
public class CargadorIdentificablesJson implements CargadorIdentificables {
8+
9+
@Override
10+
public <T extends AbstractNombrable, S extends T> void cargarNombrables(
11+
String rutaArchivo, Class<T> claseMapa,
12+
Class<S> claseEspecializacion, GestorIdentificables gestor) {
13+
Utils.cargarNombrables(rutaArchivo, claseMapa, claseEspecializacion, gestor);
14+
}
15+
16+
}

0 commit comments

Comments
 (0)