Package org.glassfish.grizzly.config
Class Utils
java.lang.Object
org.glassfish.grizzly.config.Utils
Created Dec 18, 2008
- Author:
- Justin Lee
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcomposeThreadPoolName(NetworkListener networkListener) static org.glassfish.hk2.api.ServiceLocatorgetNewServiceLocator(String name) static org.glassfish.hk2.api.ServiceLocatorgetServiceLocator(InputStream inputStream, String name) static org.glassfish.hk2.api.ServiceLocatorgetServiceLocator(String fileURL) static booleanstatic Classstatic ObjectnewInstance(String classname) static ObjectnewInstance(String classname, Class<?>[] argTypes, Object[] args) static <E> EnewInstance(org.glassfish.hk2.api.ServiceLocator habitat, Class<E> clazz, String name, String realClassName) Load or create an Object with the specific service name and class name.static <E> EnewInstance(org.glassfish.hk2.api.ServiceLocator habitat, Class<E> clazz, String name, String realClassName, Class<?>[] argTypes, Object[] args) Load or create an Object with the specific service name and class name.
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
getServiceLocator
-
getServiceLocator
public static org.glassfish.hk2.api.ServiceLocator getServiceLocator(InputStream inputStream, String name) -
getNewServiceLocator
-
composeThreadPoolName
-
newInstance
public static <E> E newInstance(org.glassfish.hk2.api.ServiceLocator habitat, Class<E> clazz, String name, String realClassName) Load or create an Object with the specific service name and class name.- Parameters:
habitat- the HK2ServiceLocatorclazz- the class as mapped within theServiceLocatorname- the service namerealClassName- the class name of the service- Returns:
- a service matching based on name and realClassName input arguments.
-
newInstance
public static <E> E newInstance(org.glassfish.hk2.api.ServiceLocator habitat, Class<E> clazz, String name, String realClassName, Class<?>[] argTypes, Object[] args) Load or create an Object with the specific service name and class name.- Parameters:
habitat- the HK2ServiceLocatorclazz- the class as mapped within theServiceLocatorname- the service namerealClassName- the class name of the service- Returns:
- a service matching based on name and realClassName input arguments.
-
newInstance
- Throws:
Exception
-
newInstance
public static Object newInstance(String classname, Class<?>[] argTypes, Object[] args) throws Exception - Throws:
Exception
-
loadClass
- Throws:
ClassNotFoundException
-
isDebugVM
public static boolean isDebugVM()
-