start() method. If JGit is not running in OSGi,
getInstance() will lazily create an instance.
An OSGi-created CleanupService will run the registered cleanup when
the org.eclipse.jgit bundle is deactivated. A lazily created instance
will register the cleanup as a JVM shutdown hook.
| Modifier and Type | Field and Description |
|---|---|
| private Runnable | |
| private static CleanupService | |
| private final boolean | |
| private JGitText | |
| private static final Object | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static CleanupService | Returns: theCleanupService singleton instanceObtains the singleton instance of the |
| pack-priv void | |
| private static void | |
| pack-priv void | |
| pack-priv void |
| cleanup | back to summary |
|---|---|
| private Runnable cleanup | |
| INSTANCE | back to summary |
|---|---|
| private static CleanupService INSTANCE | |
| isOsgi | back to summary |
|---|---|
| private final boolean isOsgi | |
| jgitText | back to summary |
|---|---|
| private JGitText jgitText | |
| LOCK | back to summary |
|---|---|
| private static final Object LOCK | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| CleanupService | back to summary |
|---|---|
| public CleanupService() Public component constructor for OSGi DS. Do not call this explicitly! (Unfortunately this constructor must be public because of OSGi requirements.) | |
| CleanupService | back to summary |
|---|---|
| private CleanupService(boolean isOsgi) | |
| getInstance | back to summary |
|---|---|
| public static CleanupService getInstance() Obtains the singleton instance of the
| |
| register | back to summary |
|---|---|
| pack-priv void register(Runnable cleanUp) | |
| setInstance | back to summary |
|---|---|
| private static void setInstance(CleanupService service) | |
| shutDown | back to summary |
|---|---|
| pack-priv void shutDown() | |
| start | back to summary |
|---|---|
| pack-priv void start() | |