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 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<!-- country info --> <!-- country info -->
<groupId>ru.molokoin.education</groupId> <groupId>ru.molokoin</groupId>
<artifactId>country</artifactId> <artifactId>country</artifactId>
<version>1.0</version> <version>1.0</version>
<packaging>jar</packaging> <packaging>jar</packaging>

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

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

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

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

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

@ -1,7 +1,21 @@
package ru.molokoin;
//import annotations //import annotations
@File (name=noname, size=0, extension=Extension.OTHER) //@File (name=noname, size=0, extension=Extension.OTHER)
public class Storage { 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 @@
digraph "ru.molokoin:files:jar:1.0" {
}

1
pom.xml

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

2
practice/pom.xml

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

Loading…
Cancel
Save