|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.xbean.kernel.InvalidServiceTypeException
public class InvalidServiceTypeException
Indicates that the service factory returned an object from the createService method that is not an instance of every declared type.
Constructor Summary | |
---|---|
InvalidServiceTypeException(ServiceName serviceName,
Class expectedType,
Class serviceType)
Creates an InvalidServiceType caused by the service with the specified name, which returned an object from the createService method of the specified type that is not an instance of the expected type. |
Method Summary | |
---|---|
Class |
getExpectedType()
Gets the type that was expected. |
ServiceName |
getServiceName()
Gets the name of the service that returned an object of the wrong type. |
Class |
getServiceType()
Gets the actual type of the service returned from the factory. |
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 |
---|
public InvalidServiceTypeException(ServiceName serviceName, Class expectedType, Class serviceType)
serviceName
- the name of the service that returned an object of the wrong typeexpectedType
- the type that was expectedserviceType
- the actual type of the service returned from the factoryMethod Detail |
---|
public ServiceName getServiceName()
public Class getExpectedType()
public Class getServiceType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |