public class ServiceGetter<T> extends Object
Constructor and Description |
---|
ServiceGetter(IInternalAccess component,
Class<T> type,
String scope)
Create a new service getter.
|
ServiceGetter(IInternalAccess component,
long delay,
Class<T> type,
String scope)
Create a new service getter.
|
Modifier and Type | Method and Description |
---|---|
T |
getLastService()
Get last service.
|
IFuture<T> |
getService()
Get or search the service with a delay in case not found.
|
void |
resetService()
Set the service to null, if e.g. broken.
|
public ServiceGetter(IInternalAccess component, Class<T> type, String scope)
public ServiceGetter(IInternalAccess component, long delay, Class<T> type, String scope)
Copyright © 2013. All Rights Reserved.