You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@river.apache.org by Sim IJskes - QCG <si...@qcg.nl> on 2011/01/11 13:06:58 UTC

ConfigurationBuilder options...

ConfigurationBuilder.setEnableRegistry(boolean b) ?

ConfigurationBuilder.setHostName(String name) ?

Gr. Sim

-- 
QCG, Software voor het MKB, 071-5890970, http://www.qcg.nl
Quality Consultancy Group b.v., Leiderdorp, Kvk Den Haag: 28088397

Re: ConfigurationBuilder options...

Posted by Sim IJskes - QCG <si...@qcg.nl>.
On 11-01-11 13:15, Tom Hobbs wrote:
> ConfigurationBuilder.setInitialLookupGroups(String[] grps)
>
> ConfigurationBuilder.setInitialMemberGroups(String[] grps)
>
> ConfigurationBuilder.setExporter(TomCantRememberType exporter)
>
> ConfigurationBuilder.addInitialLookupAttribute(Entry e);
> ConfigurationBuilder.addInitialLookupAttributes(Entry[] es);

I think this approach is better served with the DynamicConfiguration 
that Dennis proposed. (Because of the non-string method arguments).

Both ConfigurationBuilders can implement the ConfigurationFactory (even 
as selfdocumenting code).

I will rename the text based builder to TextConfigurationBuilder.

Gr. Sim



-- 
QCG, Software voor het MKB, 071-5890970, http://www.qcg.nl
Quality Consultancy Group b.v., Leiderdorp, Kvk Den Haag: 28088397

Re: ConfigurationBuilder options...

Posted by Tom Hobbs <tv...@googlemail.com>.
ConfigurationBuilder.setInitialLookupGroups(String[] grps)

ConfigurationBuilder.setInitialMemberGroups(String[] grps)

ConfigurationBuilder.setExporter(TomCantRememberType exporter)

ConfigurationBuilder.addInitialLookupAttribute(Entry e);
ConfigurationBuilder.addInitialLookupAttributes(Entry[] es);

Again, I'm assuming that I not barking up the wrong tree...

On Tue, Jan 11, 2011 at 12:12 PM, Tom Hobbs <tv...@googlemail.com> wrote:
> ConfigurationBuilder.addToCodebase(String jarUrl)
>
> ConfigurationBuilder.addServiceDescriptor(ServiceDescriptor sd)
>
> ConfigurationBuilder.setPolicy(File policyFile) // or some permission object
>
> ConfigurationBuilder.setName(Name n);
>
> Or am I thinking about the wrong stuff?
>
> On Tue, Jan 11, 2011 at 12:06 PM, Sim IJskes - QCG <si...@qcg.nl> wrote:
>>
>> ConfigurationBuilder.setEnableRegistry(boolean b) ?
>>
>> ConfigurationBuilder.setHostName(String name) ?
>>
>> Gr. Sim
>>
>> --
>> QCG, Software voor het MKB, 071-5890970, http://www.qcg.nl
>> Quality Consultancy Group b.v., Leiderdorp, Kvk Den Haag: 28088397
>>
>

Re: ConfigurationBuilder options...

Posted by Calum Shaw-Mackay <ca...@gmail.com>.
I'm not sure if this may be relevant to the discussion at hand (having
seemingly arrived late to this thread), however I did mess around with
Configuration 'building' in a project some time ago, and looked at ideas of
Dynamic (Re)Configuration

https://thor.dev.java.net/configuration.html

Calum

On 11 January 2011 12:20, Sim IJskes - QCG <si...@qcg.nl> wrote:

> On 11-01-11 13:12, Tom Hobbs wrote:
>
>> ConfigurationBuilder.addToCodebase(String jarUrl)
>>
>> ConfigurationBuilder.addServiceDescriptor(ServiceDescriptor sd)
>>
>> ConfigurationBuilder.setPolicy(File policyFile) // or some permission
>> object
>>
>> ConfigurationBuilder.setName(Name n);
>>
>
> Thats in the right direction. Currently the ConfigurationBuilder is
> expected to 'build' a text config file (in the future), but that can change.
>
> Or we can create a Map of specialEntry variables, containing stuff passed
> by non-text reference.
>
>
> Gr. Sim
>
>
> --
> QCG, Software voor het MKB, 071-5890970, http://www.qcg.nl
> Quality Consultancy Group b.v., Leiderdorp, Kvk Den Haag: 28088397
>

Re: ConfigurationBuilder options...

Posted by Sim IJskes - QCG <si...@qcg.nl>.
On 11-01-11 13:12, Tom Hobbs wrote:
> ConfigurationBuilder.addToCodebase(String jarUrl)
>
> ConfigurationBuilder.addServiceDescriptor(ServiceDescriptor sd)
>
> ConfigurationBuilder.setPolicy(File policyFile) // or some permission object
>
> ConfigurationBuilder.setName(Name n);

Thats in the right direction. Currently the ConfigurationBuilder is 
expected to 'build' a text config file (in the future), but that can change.

Or we can create a Map of specialEntry variables, containing stuff 
passed by non-text reference.

Gr. Sim


-- 
QCG, Software voor het MKB, 071-5890970, http://www.qcg.nl
Quality Consultancy Group b.v., Leiderdorp, Kvk Den Haag: 28088397

Re: ConfigurationBuilder options...

Posted by Tom Hobbs <tv...@googlemail.com>.
ConfigurationBuilder.addToCodebase(String jarUrl)

ConfigurationBuilder.addServiceDescriptor(ServiceDescriptor sd)

ConfigurationBuilder.setPolicy(File policyFile) // or some permission object

ConfigurationBuilder.setName(Name n);

Or am I thinking about the wrong stuff?

On Tue, Jan 11, 2011 at 12:06 PM, Sim IJskes - QCG <si...@qcg.nl> wrote:
>
> ConfigurationBuilder.setEnableRegistry(boolean b) ?
>
> ConfigurationBuilder.setHostName(String name) ?
>
> Gr. Sim
>
> --
> QCG, Software voor het MKB, 071-5890970, http://www.qcg.nl
> Quality Consultancy Group b.v., Leiderdorp, Kvk Den Haag: 28088397
>