Skip to content

Instantly share code, notes, and snippets.

@dlinsin
Created October 9, 2009 05:38
Show Gist options
  • Save dlinsin/205746 to your computer and use it in GitHub Desktop.
Save dlinsin/205746 to your computer and use it in GitHub Desktop.
import org.springframework.osgi.extensions.annotation.ServiceReference;
public class MyService {
private LogService logService;
@ServiceReference(cardinality=ServiceReferenceCardinality.C0__1)
public void setLogService(LogService argLogService) {
logService= argLogService;
}
// other stuf
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment