org.ow2.petals.registry.client
Class RegistryClientImpl

java.lang.Object
  extended by org.ow2.petals.registry.client.RegistryClientImpl
All Implemented Interfaces:
RegistryClient

public final class RegistryClientImpl
extends java.lang.Object
implements RegistryClient

This is just a facade to the registry in order to avoid Resource manipulation on the client side.

Author:
Christophe HAMERLING - eBM WebSourcing

Constructor Summary
RegistryClientImpl(org.ow2.petals.registry.api.LocalRegistry localRegistry)
          Creates a new instance of RegistryClientImpl
 
Method Summary
 void delete(java.lang.String path, boolean b)
           
 org.ow2.petals.registry.api.Endpoint get(java.lang.String path, boolean b)
           
 java.util.List<org.ow2.petals.registry.api.Endpoint> getAll(java.lang.String path, boolean b)
           
 org.ow2.petals.registry.api.LocalRegistry getLocalRegistry()
           
 java.util.List<org.ow2.petals.registry.api.Endpoint> lookup(org.ow2.petals.registry.api.Query query, boolean b)
           
 boolean put(java.lang.String path, org.ow2.petals.registry.api.Endpoint endpoint, boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryClientImpl

public RegistryClientImpl(org.ow2.petals.registry.api.LocalRegistry localRegistry)
Creates a new instance of RegistryClientImpl

Method Detail

delete

public void delete(java.lang.String path,
                   boolean b)
            throws org.ow2.petals.registry.api.exception.RegistryException
Specified by:
delete in interface RegistryClient
Throws:
org.ow2.petals.registry.api.exception.RegistryException

get

public org.ow2.petals.registry.api.Endpoint get(java.lang.String path,
                                                boolean b)
                                         throws org.ow2.petals.registry.api.exception.RegistryException
Specified by:
get in interface RegistryClient
Throws:
org.ow2.petals.registry.api.exception.RegistryException

put

public boolean put(java.lang.String path,
                   org.ow2.petals.registry.api.Endpoint endpoint,
                   boolean b)
            throws org.ow2.petals.registry.api.exception.RegistryException
Specified by:
put in interface RegistryClient
Throws:
org.ow2.petals.registry.api.exception.RegistryException

getAll

public java.util.List<org.ow2.petals.registry.api.Endpoint> getAll(java.lang.String path,
                                                                   boolean b)
                                                            throws org.ow2.petals.registry.api.exception.RegistryException
Specified by:
getAll in interface RegistryClient
Returns:
at least an empty list, not null
Throws:
org.ow2.petals.registry.api.exception.RegistryException

lookup

public java.util.List<org.ow2.petals.registry.api.Endpoint> lookup(org.ow2.petals.registry.api.Query query,
                                                                   boolean b)
                                                            throws org.ow2.petals.registry.api.exception.RegistryException
Specified by:
lookup in interface RegistryClient
Returns:
at least an empty list, not null!
Throws:
org.ow2.petals.registry.api.exception.RegistryException

getLocalRegistry

public org.ow2.petals.registry.api.LocalRegistry getLocalRegistry()


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.