|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpu.patterns.serviceLocator.Locator.DefaultNarrowStrategy
Simple narrow strategy implementation based on "PortableRemoteObject.narrow()
".
Constructor Summary | |
Locator.DefaultNarrowStrategy()
|
Method Summary | |
java.lang.Object |
narrow(java.lang.Object o,
java.lang.Class c)
Narrows the given object to the given type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Locator.DefaultNarrowStrategy()
Method Detail |
public java.lang.Object narrow(java.lang.Object o, java.lang.Class c) throws ServiceLocatorException
ILocator.INarrowStrategy
o
or
c
are null
, this method returns o
.
Otherwise it attempts to narrow using PortableRemoteObject.narrow()
and rethrows any exceptions as ServiceLocatorException
, wrapping
the original exception.
Subclasses are free to override this method; in particular, local homes
should not be narrowed using PortableRemoteObject.narrow()
.
narrow
in interface ILocator.INarrowStrategy
ServiceLocatorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |