Skip to content

Commit

Permalink
add HowdyGreeting in demo, a Greeting service implementation declared…
Browse files Browse the repository at this point in the history
… via Java Service Provider mechanism (META-INF/services)
  • Loading branch information
decebals committed Jan 4, 2016
1 parent 479e1cb commit ce73b9b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions demo/app/src/main/java/ro/fortsoft/pf4j/demo/HowdyGreeting.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Copyright 2015 Decebal Suiu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ro.fortsoft.pf4j.demo;

import ro.fortsoft.pf4j.demo.api.Greeting;

/**
* A Service Implementation (no @Extension) declared via Java Service Provider mechanism (using META-INF/services).
*
* @author Decebal Suiu
*/
public class HowdyGreeting implements Greeting {

@Override
public String getGreeting() {
return "Howdy";
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ro.fortsoft.pf4j.demo.HowdyGreeting

0 comments on commit ce73b9b

Please sign in to comment.