org.objectweb.easybeans.component.carol
Class CarolComponent

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

public class CarolComponent
extends java.lang.Object
implements RegistryComponent

This component allows to start a registry.

Author:
Florent Benoit

Field Summary
private static java.lang.String DEFAULT_PREFIX_PROTOCOL
          Default prefix protocol.
private  JLog logger
          Logger.
private  java.util.List<Protocol> protocols
          List of protocols.
 
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
 

Field Detail

logger

private JLog logger
Logger.


DEFAULT_PREFIX_PROTOCOL

private static final java.lang.String DEFAULT_PREFIX_PROTOCOL
Default prefix protocol.

See Also:
Constant Field Values

protocols

private java.util.List<Protocol> protocols
List of protocols.

Constructor Detail

CarolComponent

public CarolComponent()
Creates a new Carol component.

Method Detail

init

public void init()
          throws EZBComponentException
Init method.
This method is called before the start method.

Specified by:
init in interface EZBComponent
Throws:
EZBComponentException - if the initialization has failed.

start

public void start()
           throws EZBComponentException
Start method.
This method is called after the init method.

Specified by:
start in interface EZBComponent
Throws:
EZBComponentException - if the start has failed.

stop

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

Specified by:
stop in interface EZBComponent
Throws:
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 RegistryComponent
Returns:
the provider URL that is used by default.