-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
5.0
-
x86
-
windows_xp
Name: rmT116609 Date: 03/22/2004
A DESCRIPTION OF THE REQUEST :
At present, one specifies bean properties by means of a BeanInfo class.
I'd like to see it made possible to do this with the new metatdata facilities in 1.5. This would involve some metatdata interfaces being created (which should be attached to the class but not loaded at runtime), and java.beans.BeanInfo being updataed to understand these properties.
Since the metadata stuff only returns strings, icons would be returned as URLs or as resources. So metadata interface @java.beans.FeatureDescriptor (or whatever) would have a pair of methods getIconResource() and getIconURL() which would return null or values suitable for
getBeanClass().getResource(xxx.getIconResource())
or
new URL(xxx.getIconURL())
respecitvely.
JUSTIFICATION :
The point of the new metadata facilities is to provide APIs that provide metadata (including but not limited to JavaBeans) witha unifided method for doing it.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Id like to be able to put the values for
attributeNames, getDisplayName, getName, getShortDescription, isExpert, isHidden, isPreferred
etc in the java code
ACTUAL -
You have to make a BeanInfo class
(Incident Review ID: 243858)
======================================================================
A DESCRIPTION OF THE REQUEST :
At present, one specifies bean properties by means of a BeanInfo class.
I'd like to see it made possible to do this with the new metatdata facilities in 1.5. This would involve some metatdata interfaces being created (which should be attached to the class but not loaded at runtime), and java.beans.BeanInfo being updataed to understand these properties.
Since the metadata stuff only returns strings, icons would be returned as URLs or as resources. So metadata interface @java.beans.FeatureDescriptor (or whatever) would have a pair of methods getIconResource() and getIconURL() which would return null or values suitable for
getBeanClass().getResource(xxx.getIconResource())
or
new URL(xxx.getIconURL())
respecitvely.
JUSTIFICATION :
The point of the new metadata facilities is to provide APIs that provide metadata (including but not limited to JavaBeans) witha unifided method for doing it.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Id like to be able to put the values for
attributeNames, getDisplayName, getName, getShortDescription, isExpert, isHidden, isPreferred
etc in the java code
ACTUAL -
You have to make a BeanInfo class
(Incident Review ID: 243858)
======================================================================
- duplicates
-
JDK-4763438 Replace uses of @beaninfo with meta facility in core j2se
-
- Resolved
-
- relates to
-
JDK-6381469 RFE: LTP: XMLEncoder, XMLDecoder should be able to use Apt
-
- Open
-
-
JDK-4763438 Replace uses of @beaninfo with meta facility in core j2se
-
- Resolved
-
-
JDK-4058433 RFE: tool for creating BeanInfo template
-
- Resolved
-