Skip to content

Instantly share code, notes, and snippets.

@athiththan11
Created July 6, 2019 08:18
Show Gist options
  • Save athiththan11/9c434a72013cff08a3ea9b93f8568a83 to your computer and use it in GitHub Desktop.
Save athiththan11/9c434a72013cff08a3ea9b93f8568a83 to your computer and use it in GitHub Desktop.
OSGi Component: Fabricator implementation
public class FactFabricator {
private Fact fact = new Fact(System.getProperty("user.name"), System.getProperty("os.name"));
private static final Logger LOGGER = Logger.getLogger(FactFabricator.class.getName());
public Fact getSimpleFact() {
LOGGER.info("OSGI Fabricator :: Retrieving Simple Fact from FactFabricator Class");
return fact;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment