project done.

This commit is contained in:
2026-02-20 12:30:26 -05:00
parent 7128da4e11
commit cff27c3424
14 changed files with 47 additions and 8 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+11
View File
@@ -20,11 +20,22 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.ajdt.ui.ajnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
</natures>
<filteredResources>
<filter>
+6 -6
View File
@@ -1,13 +1,13 @@
arguments=--init-script C\:\\Users\\sherw\\AppData\\Roaming\\VSCodium\\User\\globalStorage\\redhat.java\\1.52.0\\config_win\\org.eclipse.osgi\\58\\0\\.cp\\gradle\\init\\init.gradle --init-script C\:\\Users\\sherw\\AppData\\Roaming\\VSCodium\\User\\globalStorage\\redhat.java\\1.52.0\\config_win\\org.eclipse.osgi\\58\\0\\.cp\\gradle\\protobuf\\init.gradle
auto.sync=true
arguments=
auto.sync=false
build.scans.enabled=false
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
connection.project.dir=
eclipse.preferences.version=1
gradle.user.home=
java.home=C\:/Program Files/jdk-26
java.home=
jvm.arguments=
offline.mode=false
override.workspace.settings=true
show.console.view=true
show.executions.view=true
override.workspace.settings=false
show.console.view=false
show.executions.view=false
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8
+1
View File
@@ -2,4 +2,5 @@ eclipse.preferences.version=1
org.eclipse.jdt.core.classpath.outputOverlappingAnotherSource=ignore
org.eclipse.jdt.core.compiler.codegen.targetPlatform=25
org.eclipse.jdt.core.compiler.compliance=25
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=enabled
org.eclipse.jdt.core.compiler.source=25
+10
View File
@@ -0,0 +1,10 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: bookocontacts
Bundle-SymbolicName: bookocontacts
Bundle-Version: 1.0.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-26
Automatic-Module-Name: bookocontacts
Export-Package: edu.bookocontacts,
edu.bookocontacts.model,
media
+4
View File
@@ -0,0 +1,4 @@
source.. = src/main/resources/,\
src/main/java/
bin.includes = META-INF/,\
.
BIN
View File
Binary file not shown.
@@ -3,8 +3,18 @@ package edu.bookocontacts;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import edu.bookocontacts.model.Contact;
public aspect StorageMonitor {
pointcut save(): execution(public * edu.bookocontacts.model.Factory.*(..));
Contact around(Contact ct): execution(public * edu.bookocontacts.model.Factory.save(Contact)) && args(ct) && if(ct!=null) {
Contact ob = proceed(ct);
Logger logger = LoggerFactory.getLogger(Contact.class);
logger.info(String.format("Checking: %s. ", ob));
return ob;
}
}
@@ -81,7 +81,8 @@ public class Contact {
StringBuilder sb = new StringBuilder();
sb.append("{\"id\": \"").append(id).append("\",");
sb.append("\"phone_number\": \"").append(phone_number).append("\",");
sb.append("\"email_address\": ").append(email_address).append(",");
sb.append("\"first_name\": \"").append(first_name).append("\",");
sb.append("\"status\": ").append(status).append(",");
sb.append("}");
return sb.toString();
}