You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by Jarek Gawor <jg...@gmail.com> on 2010/03/10 17:25:00 UTC

aries application api

Hi,

I've been looking at the application code a little bit and have a few
observations/changes I would like to make:

1) Some files are named AriesApplication*.java and some are
Application*.java. To have consistent names I think we should rename
some of these AriesApplication*.java files to Application*.java (i.e.
drop the 'Aries' prefix)

2) The BundleInfoImpl.java class seems pretty generic so I would like
to move it to the "utils" bundle (and maybe rename it as
SimpleBundleInfo or something like that)

3) There is no way right now to save an application in "expanded form"
into a directory (i.e. not as a file) So I would like to either 1)
modify AriesApplicationImpl.store(File) to handle directories as well
as files or 2) add additional method to AriesApplication for storing
the application into a directory.

4) Seems like DeploymentMetadataFactory is missing a couple of methods
for creating DeploymentMetadata directly from an InputStream or
Manifest. I would like to add these.

Any objections to these changes?

Thanks,
Jarek

Re: aries application api

Posted by Jarek Gawor <jg...@gmail.com>.
On Wed, Mar 10, 2010 at 12:11 PM, Alasdair Nottingham <no...@apache.org> wrote:
> On 10 March 2010 16:25, Jarek Gawor <jg...@gmail.com> wrote:
>> Hi,
>>
>> I've been looking at the application code a little bit and have a few
>> observations/changes I would like to make:
>>
>> 1) Some files are named AriesApplication*.java and some are
>> Application*.java. To have consistent names I think we should rename
>> some of these AriesApplication*.java files to Application*.java (i.e.
>> drop the 'Aries' prefix)
>
> I think the inconsistency is bad, but I did think having Aries at the
> front made sense, if we end up with an OSGi standard version of these
> interfaces having the Aries at the front would mean you don't need to
> fully qualify the class name if you ever need both, such as
> implementing both.

Either way is fine with me as long as we are consistent. So prepending
"Aries" to every Application*.java sounds good.

>>
>> 2) The BundleInfoImpl.java class seems pretty generic so I would like
>> to move it to the "utils" bundle (and maybe rename it as
>> SimpleBundleInfo or something like that)
>
> Which utils bundle are you thinking of? The application specific one
> or the global one?

application specific one.

Jarek

Re: aries application api

Posted by Alasdair Nottingham <no...@apache.org>.
On 10 March 2010 16:25, Jarek Gawor <jg...@gmail.com> wrote:
> Hi,
>
> I've been looking at the application code a little bit and have a few
> observations/changes I would like to make:
>
> 1) Some files are named AriesApplication*.java and some are
> Application*.java. To have consistent names I think we should rename
> some of these AriesApplication*.java files to Application*.java (i.e.
> drop the 'Aries' prefix)

I think the inconsistency is bad, but I did think having Aries at the
front made sense, if we end up with an OSGi standard version of these
interfaces having the Aries at the front would mean you don't need to
fully qualify the class name if you ever need both, such as
implementing both.

>
> 2) The BundleInfoImpl.java class seems pretty generic so I would like
> to move it to the "utils" bundle (and maybe rename it as
> SimpleBundleInfo or something like that)

Which utils bundle are you thinking of? The application specific one
or the global one?

>
> 3) There is no way right now to save an application in "expanded form"
> into a directory (i.e. not as a file) So I would like to either 1)
> modify AriesApplicationImpl.store(File) to handle directories as well
> as files or 2) add additional method to AriesApplication for storing
> the application into a directory.
>

I would go with option 1 in this case. If the provided file is a
directory we should write it exploded.

> 4) Seems like DeploymentMetadataFactory is missing a couple of methods
> for creating DeploymentMetadata directly from an InputStream or
> Manifest. I would like to add these.
>

Sure

> Any objections to these changes?
>
> Thanks,
> Jarek
>



-- 
Alasdair Nottingham
not@apache.org

Re: aries application api

Posted by Jeremy Hughes <hu...@apache.org>.
On 10 March 2010 16:25, Jarek Gawor <jg...@gmail.com> wrote:
> Hi,
>
> I've been looking at the application code a little bit and have a few
> observations/changes I would like to make:
>
> 1) Some files are named AriesApplication*.java and some are
> Application*.java. To have consistent names I think we should rename
> some of these AriesApplication*.java files to Application*.java (i.e.
> drop the 'Aries' prefix)
>
> 2) The BundleInfoImpl.java class seems pretty generic so I would like
> to move it to the "utils" bundle (and maybe rename it as
> SimpleBundleInfo or something like that)
>
> 3) There is no way right now to save an application in "expanded form"
> into a directory (i.e. not as a file) So I would like to either 1)
> modify AriesApplicationImpl.store(File) to handle directories as well
> as files or 2) add additional method to AriesApplication for storing
> the application into a directory.
>
> 4) Seems like DeploymentMetadataFactory is missing a couple of methods
> for creating DeploymentMetadata directly from an InputStream or
> Manifest. I would like to add these.
>
> Any objections to these changes?

All sounds good to me.

>
> Thanks,
> Jarek
>

Re: aries application api

Posted by Mark Nuttall <mn...@apache.org>.
+1 for adding Aries to the front of the classes that just start
Application.

On 10 March 2010 16:25, Jarek Gawor <jg...@gmail.com> wrote:

> Hi,
>
> I've been looking at the application code a little bit and have a few
> observations/changes I would like to make:
>
> 1) Some files are named AriesApplication*.java and some are
> Application*.java. To have consistent names I think we should rename
> some of these AriesApplication*.java files to Application*.java (i.e.
> drop the 'Aries' prefix)
>
> 2) The BundleInfoImpl.java class seems pretty generic so I would like
> to move it to the "utils" bundle (and maybe rename it as
> SimpleBundleInfo or something like that)
>
> 3) There is no way right now to save an application in "expanded form"
> into a directory (i.e. not as a file) So I would like to either 1)
> modify AriesApplicationImpl.store(File) to handle directories as well
> as files or 2) add additional method to AriesApplication for storing
> the application into a directory.
>
> 4) Seems like DeploymentMetadataFactory is missing a couple of methods
> for creating DeploymentMetadata directly from an InputStream or
> Manifest. I would like to add these.
>
> Any objections to these changes?
>
> Thanks,
> Jarek
>