public class Utilities extends Object
| Modifier and Type | Field and Description |
|---|---|
static char |
INSTANCE_PATH_SEPARATOR
Separator for instance names
|
| Constructor and Description |
|---|
Utilities() |
| Modifier and Type | Method and Description |
|---|---|
static BaseHK2JAXBBean |
_addRoot(ModelImpl rootNode,
Object rawRoot,
DynamicChangeInfo<?> changeInfo,
ClassReflectionHelper helper,
WriteableBeanDatabase writeableDatabase,
DynamicConfiguration dynamicService,
List<ActiveDescriptor<?>> addedServices,
XmlRootHandleImpl<?> xmlRootHandle)
Called with write lock held
|
static ActiveDescriptor<?> |
advertise(WriteableBeanDatabase wbd,
DynamicConfiguration config,
BaseHK2JAXBBean bean) |
static String |
convertNameToString(Name name)
Converts the Name from the Element to a String
|
static String |
convertToSetter(String getterName)
Converts a getter name to a setter name (works with
both IS getters and GET getters)
|
static AltClass |
convertTypeMirror(TypeMirror typeMirror,
ProcessingEnvironment processingEnv) |
static BaseHK2JAXBBean |
createBean(Class<?> implClass) |
static String |
createInstanceName(BaseHK2JAXBBean bean)
Creates an instance name by traveling up the parent chain.
|
static void |
fillInUnfinishedReferences(Map<org.glassfish.hk2.xml.internal.ReferenceKey,BaseHK2JAXBBean> referenceMap,
List<UnresolvedReference> unresolved) |
static Method |
findSuitableCustomizerMethod(Class<?> cClass,
String methodName,
Class<?>[] params,
Class<?> topInterface) |
static Object |
getDefaultValue(String givenStringDefault,
Class<?> expectedClass)
Returns the default value given the string version of the default and
the expected result (non-child properties)
|
static String |
getProxyNameFromInterfaceName(String iFaceName)
Given the fully qualified class name of the interface representing a bean,
returns the class name of the proxy
|
static BaseHK2JAXBBean |
internalAdd(BaseHK2JAXBBean myParent,
String childProperty,
Object rawChild,
String childKey,
int index,
DynamicChangeInfo<?> changeInformation,
XmlDynamicChange xmlDynamicChange,
List<ActiveDescriptor<?>> addedServices) |
static BaseHK2JAXBBean |
internalRemove(BaseHK2JAXBBean myParent,
String childProperty,
String childKey,
int index,
Object childToRemove,
DynamicChangeInfo<?> changeInformation,
XmlDynamicChange xmlDynamicChange)
Write lock must be held
|
static void |
invokeVetoableChangeListeners(DynamicChangeInfo<?> control,
BaseHK2JAXBBean source,
Object oldValue,
Object newValue,
String propertyName,
ClassReflectionHelper helper) |
public static final char INSTANCE_PATH_SEPARATOR
public static BaseHK2JAXBBean createBean(Class<?> implClass)
public static String createInstanceName(BaseHK2JAXBBean bean)
bean - The non-null bean from where to get the instancenamepublic static ActiveDescriptor<?> advertise(WriteableBeanDatabase wbd, DynamicConfiguration config, BaseHK2JAXBBean bean)
public static String convertToSetter(String getterName)
getterName - Non-null getter name starting with is or getpublic static String convertNameToString(Name name)
name - public static AltClass convertTypeMirror(TypeMirror typeMirror, ProcessingEnvironment processingEnv)
public static BaseHK2JAXBBean internalAdd(BaseHK2JAXBBean myParent, String childProperty, Object rawChild, String childKey, int index, DynamicChangeInfo<?> changeInformation, XmlDynamicChange xmlDynamicChange, List<ActiveDescriptor<?>> addedServices)
public static String getProxyNameFromInterfaceName(String iFaceName)
iFaceName - the never null fully qualified class name of the bean interfacepublic static BaseHK2JAXBBean _addRoot(ModelImpl rootNode, Object rawRoot, DynamicChangeInfo<?> changeInfo, ClassReflectionHelper helper, WriteableBeanDatabase writeableDatabase, DynamicConfiguration dynamicService, List<ActiveDescriptor<?>> addedServices, XmlRootHandleImpl<?> xmlRootHandle)
rootNode - rawRoot - changeInfo - helper - writeableDatabase - dynamicService - public static BaseHK2JAXBBean internalRemove(BaseHK2JAXBBean myParent, String childProperty, String childKey, int index, Object childToRemove, DynamicChangeInfo<?> changeInformation, XmlDynamicChange xmlDynamicChange)
myParent - childProperty - childKey - index - changeInformation - writeableDatabase - dynamicService - public static Object getDefaultValue(String givenStringDefault, Class<?> expectedClass)
givenStringDefault - expectedClass - public static void fillInUnfinishedReferences(Map<org.glassfish.hk2.xml.internal.ReferenceKey,BaseHK2JAXBBean> referenceMap, List<UnresolvedReference> unresolved)
public static Method findSuitableCustomizerMethod(Class<?> cClass, String methodName, Class<?>[] params, Class<?> topInterface)
public static void invokeVetoableChangeListeners(DynamicChangeInfo<?> control, BaseHK2JAXBBean source, Object oldValue, Object newValue, String propertyName, ClassReflectionHelper helper)
Copyright © 2009-2016 Oracle Corporation. All Rights Reserved.