Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
ikylin committed May 29, 2012
1 parent cbec270 commit 0207051
Show file tree
Hide file tree
Showing 9 changed files with 147 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hello.service/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
23 changes: 23 additions & 0 deletions hello.service/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>hello.service</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.maven.ide.eclipse.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
</natures>
</projectDescription>
6 changes: 6 additions & 0 deletions hello.service/.settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Mon May 28 18:31:29 CST 2012
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.5
8 changes: 8 additions & 0 deletions hello.service/.settings/org.maven.ide.eclipse.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#Mon May 28 18:31:29 CST 2012
activeProfiles=
eclipse.preferences.version=1
fullBuildGoals=process-test-resources
resolveWorkspaceProjects=true
resourceFilterGoals=process-resources resources\:testResources
skipCompilerPlugin=true
version=1
46 changes: 46 additions & 0 deletions hello.service/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>iPOJOTutorial</groupId>
<artifactId>hello.service</artifactId>
<version>1.0.0</version>
<packaging>bundle</packaging>

<name>hello.service</name>
<url>http://maven.apache.org</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>1.4.3</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>
${pom.artifactId}
</Bundle-SymbolicName>
<Export-Package>
ipojo.example.hello
</Export-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package ipojo.example.hello;

/**
* A simple service interface that defines a dictionary service. A dictionary
* service simply verifies the existence of a word.
**/
public interface DictionaryService {
/**
* Check for the existence of a word.
*
* @param word
* the word to be checked.
* @return true if the word is in the dictionary, false otherwise.
**/
public boolean checkWord(String word);
}
18 changes: 18 additions & 0 deletions hello.service/src/main/java/ipojo/example/hello/Hello.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package ipojo.example.hello;

/**
* Hello Interface.
*
* @author <a href="mailto:[email protected]">Felix Project Team</a>
*/
public interface Hello {

/**
* Returns a message like: "Hello $user_name".
*
* @param name
* the name
* @return the hello message
*/
String sayHello(String name);
}
22 changes: 22 additions & 0 deletions hello.service/src/main/java/ipojo/example/hello/SpellChecker.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package ipojo.example.hello;

/**
* A simple service interface that defines a spell checker service. A spell
* checker service checks the spelling of all words in a given passage. A
* passage is any number of words separated by a space character and the
* following punctuation marks: comma, period, exclamation mark, question mark,
* semi-colon, and colon.
**/
public interface SpellChecker {
/**
* Checks a given passage for spelling errors. A passage is any number of
* words separated by a space and any of the following punctuation marks:
* comma (,), period (.), exclamation mark (!), question mark (?),
* semi-colon (;), and colon(:).
*
* @param passage
* the passage to spell check.
* @return An array of misspelled words or null if no words are misspelled.
**/
public String[] check(String passage);
}
Binary file added hello.service/target/hello.service-1.0.0.jar
Binary file not shown.

0 comments on commit 0207051

Please sign in to comment.