refactored using 'common-rest-api'
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package com.inteligr8.alfresco.acs;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import com.inteligr8.rs.ClientConfiguration;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services Spring-ready API for Jersey
|
||||
*/
|
||||
@Component("acs.api.jersey")
|
||||
@Lazy
|
||||
public class AcsPublicRestApiJerseyImpl extends AcsPublicRestApi {
|
||||
|
||||
@Autowired
|
||||
private AcsClientJerseyImpl client;
|
||||
|
||||
@Override
|
||||
ClientConfiguration getConfig() {
|
||||
return this.client.getConfig();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <T> T getApi(Class<T> apiClass) {
|
||||
return this.client.getApi(apiClass);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user