org.apache.xbean.kernel
Class ServiceAlreadyExistsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.xbean.kernel.ServiceAlreadyExistsException
All Implemented Interfaces:
Serializable

public class ServiceAlreadyExistsException
extends Exception

Signifies that an attempt was made to register a service using a name that already has a service registered.

Since:
2.0
Author:
Dain Sundstrom
See Also:
Serialized Form

Constructor Summary
ServiceAlreadyExistsException(ServiceName serviceName)
          Creates a ServiceAlreadyExistsException for the specified service name.
 
Method Summary
 ServiceName getServiceName()
          Gets the name of the service that caused this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceAlreadyExistsException

public ServiceAlreadyExistsException(ServiceName serviceName)
Creates a ServiceAlreadyExistsException for the specified service name.

Parameters:
serviceName - the name of the service that already exists
Method Detail

getServiceName

public ServiceName getServiceName()
Gets the name of the service that caused this exception.

Returns:
the service name


Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.