org.ow2.easybeans.component.carol
Class CarolComponent

java.lang.Object
  extended by org.ow2.easybeans.component.carol.CarolComponent
All Implemented Interfaces:
org.ow2.easybeans.component.api.EZBComponent, org.ow2.easybeans.component.itf.RegistryComponent

public class CarolComponent
extends java.lang.Object
implements org.ow2.easybeans.component.itf.RegistryComponent

This component allows to start a registry.

Author:
Florent Benoit

Constructor Summary
CarolComponent()
          Creates a new Carol component.
 
Method Summary
 java.util.List<Protocol> getProtocols()
          Gets the protocols defined for the start.
 java.lang.String getProviderURL()
          Gets the default Provider URL.
 void init()
          Init method.
This method is called before the start method.
 void setProtocols(java.util.List<Protocol> protocols)
          Sets the list of protocols.
 void start()
          Start method.
This method is called after the init method.
 void stop()
          Stop method.
This method is called when component needs to be stopped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CarolComponent

public CarolComponent()
Creates a new Carol component.

Method Detail

init

public void init()
          throws org.ow2.easybeans.component.api.EZBComponentException
Init method.
This method is called before the start method.

Specified by:
init in interface org.ow2.easybeans.component.api.EZBComponent
Throws:
org.ow2.easybeans.component.api.EZBComponentException - if the initialization has failed.

start

public void start()
           throws org.ow2.easybeans.component.api.EZBComponentException
Start method.
This method is called after the init method.

Specified by:
start in interface org.ow2.easybeans.component.api.EZBComponent
Throws:
org.ow2.easybeans.component.api.EZBComponentException - if the start has failed.

stop

public void stop()
          throws org.ow2.easybeans.component.api.EZBComponentException
Stop method.
This method is called when component needs to be stopped.

Specified by:
stop in interface org.ow2.easybeans.component.api.EZBComponent
Throws:
org.ow2.easybeans.component.api.EZBComponentException - if the stop is failing.

getProtocols

public java.util.List<Protocol> getProtocols()
Gets the protocols defined for the start.

Returns:
the list of protocols.

setProtocols

public void setProtocols(java.util.List<Protocol> protocols)
Sets the list of protocols.

Parameters:
protocols - the list of protocols configured for this server.

getProviderURL

public java.lang.String getProviderURL()
Gets the default Provider URL.

Specified by:
getProviderURL in interface org.ow2.easybeans.component.itf.RegistryComponent
Returns:
the provider URL that is used by default.


Copyright © 2006-2008 OW2 Consortium. All Rights Reserved.