esoe 2 years ago
parent
commit
b05f739a56
  1. 2
      country/pom.xml
  2. 1
      files/src/main/java/ru/molokoin/Extension.java
  3. 2
      files/src/main/java/ru/molokoin/File.java
  4. 18
      files/src/main/java/ru/molokoin/Storage.java
  5. 2
      files/target/dependencies.txt
  6. 1
      pom.xml
  7. 2
      practice/pom.xml

2
country/pom.xml

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
<modelVersion>4.0.0</modelVersion>
<!-- country info -->
<groupId>ru.molokoin.education</groupId>
<groupId>ru.molokoin</groupId>
<artifactId>country</artifactId>
<version>1.0</version>
<packaging>jar</packaging>

1
files/src/main/java/ru/molokoin/Extension.java

@ -1,3 +1,4 @@ @@ -1,3 +1,4 @@
package ru.molokoin;
public enum Extension {
DOCUMENT,
IMAGE,

2
files/src/main/java/ru/molokoin/File.java

@ -1,3 +1,5 @@ @@ -1,3 +1,5 @@
package ru.molokoin;
@Inherited
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)

18
files/src/main/java/ru/molokoin/Storage.java

@ -1,7 +1,21 @@ @@ -1,7 +1,21 @@
package ru.molokoin;
//import annotations
@File (name=noname, size=0, extension=Extension.OTHER)
//@File (name=noname, size=0, extension=Extension.OTHER)
public class Storage {
Extension extension;
//Extension extension;
public Storage(){
}
public Storage(Extension extension){
}
//читаем днные аннотации
public static void main(String[] args) {
System.out.println("Storage.main()");
//Storage storage = new Storage();
}
}

2
files/target/dependencies.txt

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
digraph "ru.molokoin:files:jar:1.0" {
}

1
pom.xml

@ -22,6 +22,7 @@ @@ -22,6 +22,7 @@
<module>book</module>
<module>universaty</module>
<module>practice</module>
<module>files</module>
</modules>
<build>

2
practice/pom.xml

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
<modelVersion>4.0.0</modelVersion>
<!-- practice info -->
<groupId>ru.molokoin.education</groupId>
<groupId>ru.molokoin</groupId>
<artifactId>practice</artifactId>
<version>1.0</version>
<packaging>jar</packaging>

Loading…
Cancel
Save