[
https://issues.jboss.org/browse/JBIDE-9443?page=com.atlassian.jira.plugin...
]
Alexey Kazakov edited comment on JBIDE-9443 at 8/2/11 1:54 PM:
---------------------------------------------------------------
We can create such a wizard. But ideally that wizard should be added to Eclipse JDT since
it's [Java SE
stuff|http://download.oracle.com/javase/6/docs/api/java/util/ServiceLoade...]. I
didn't find such a feature request in
https://bugs.eclipse.org/bugs
So what options do we have:
# Submit a feature request to eclipse bugzilla (and hope they will implement it in
future)
## a) Submit a feature request and provide a patch/implementation of the wizard.
# Create a basic *New Service Provider Class* wizard and include it to JBT (what category
of File->New menu we should use for this wizard? JBoss Tools? Or place it to
New->Java?)
Also we could create a New CDI Extension wizard which will be based on New Service
Provider Class wizard with preset service interface javax.enterprise.inject.spi.Extension
Max, Lincoln, what do you think?
was (Author: akazakov):
We can create such a wizard. But ideally that wizard should be added to Eclipse JDT
since it's Java SE stuff. I didn't find such a feature request in
https://bugs.eclipse.org/bugs
So what options do we have:
# Submit a feature request to eclipse bugzilla (and hope they will implement it in
future)
## a) Submit a feature request and provide a patch/implementation of the wizard.
# Create a basic *New Service Provider Class* wizard and include it to JBT (what category
of File->New menu we should use for this wizard? JBoss Tools? Or place it to
New->Java?)
Also we could create a New CDI Extension wizard which will be based on New Service
Provider Class wizard with preset service interface javax.enterprise.inject.spi.Extension
Max, Lincoln, what do you think?
Wizard for creating Service implementations (ServiceLoader / Service
file)
--------------------------------------------------------------------------
Key: JBIDE-9443
URL:
https://issues.jboss.org/browse/JBIDE-9443
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: common
Affects Versions: 3.3.0.M2
Reporter: Lincoln Baxter III
Assignee: Max Rydahl Andersen
It would be very nice if we had a wizard or hotkey to create a new service
implementation:
CTRL-N
--> New Service Implementation Class
1. Wizard asks you to specify the service Interface you wish to implement, and then lets
you give the typical new-class information (with Interface already populated and greyed
out.)
2. When submitted, the wizard creates the implementing class, and also creates a service
file in the java-resources 'META-INF/services' directory, containing the name of
your service implementation class. If the Service file already exists, your class should
be added to it on a new line:
META-INF/services/org.example.service.spi.Interface
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira