public class PrivilededLookup<T> extends Object implements PrivilegedAction<T>
Constructor and Description |
---|
PrivilededLookup(org.glassfish.hk2.api.ServiceLocator serviceLocator,
Class<T> serviceClass) |
PrivilededLookup(org.glassfish.hk2.api.ServiceLocator serviceLocator,
Class<T> serviceClass,
String serviceName) |
public PrivilededLookup(org.glassfish.hk2.api.ServiceLocator serviceLocator, Class<T> serviceClass, String serviceName)
serviceLocator
- the HK2 service locatorserviceClass
- the protected HK2 service to be looked upserviceName
- the name of the service to be lookedpublic T run()
run
in interface PrivilegedAction<T>
Copyright © 2019. All rights reserved.