Class ServiceExampleImpl
- java.lang.Object
-
- org.dspace.servicemanager.example.ServiceExampleImpl
-
- All Implemented Interfaces:
ServiceExample
@Service public final class ServiceExampleImpl extends Object implements ServiceExample
Example implementation of the example service. Spring annotations will require the injection of a ConcreteExample instance, whose name will be returned bygetOtherName()
.- Author:
- Aaron Zeckoski (azeckoski @ gmail.com)
-
-
Constructor Summary
Constructors Constructor Description ServiceExampleImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
String
getOtherName()
void
setConcreteExample(ConcreteExample concreteExample)
void
setName(String name)
-
-
-
Method Detail
-
setConcreteExample
@Autowired(required=true) public void setConcreteExample(ConcreteExample concreteExample)
-
getName
public String getName()
- Specified by:
getName
in interfaceServiceExample
- Returns:
- some string for testing
-
setName
public void setName(String name)
-
getOtherName
public String getOtherName()
- Specified by:
getOtherName
in interfaceServiceExample
- Returns:
- some string from another service
-
-