Class DefaultServiceLocator

  • All Implemented Interfaces:
    org.fedoraproject.xmvn.locator.ServiceLocator

    public class DefaultServiceLocator
    extends java.lang.Object
    implements org.fedoraproject.xmvn.locator.ServiceLocator
    Service locator for XMvn.

    WARNING: This class is part of internal implementation of XMvn and it is marked as public only for technical reasons. This class is not part of XMvn API. Client code using XMvn should not reference it directly.

    Author:
    Mikolaj Izdebski
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> void addService​(java.lang.Class<T> role, java.lang.Class<? extends T> serviceProvider)  
      <T> T getService​(java.lang.Class<T> role)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultServiceLocator

        public DefaultServiceLocator()
    • Method Detail

      • addService

        public <T> void addService​(java.lang.Class<T> role,
                                   java.lang.Class<? extends T> serviceProvider)
      • getService

        public <T> T getService​(java.lang.Class<T> role)
        Specified by:
        getService in interface org.fedoraproject.xmvn.locator.ServiceLocator