コード例 #1
0
 @Override
 public IServiceLocator createServiceLocator(
     IServiceLocator parent,
     AbstractServiceFactory factory,
     IDisposable owner,
     IEclipseContext context) {
   ServiceLocator serviceLocator = new ServiceLocator(parent, factory, owner);
   serviceLocator.setContext(context);
   return serviceLocator;
 }
コード例 #2
0
 @Override
 public IServiceLocator createServiceLocator(
     IServiceLocator parent, AbstractServiceFactory factory, IDisposable owner) {
   ServiceLocator serviceLocator = new ServiceLocator(parent, factory, owner);
   // System.err.println("parentLocator: " + parent); //$NON-NLS-1$
   if (parent != null) {
     IEclipseContext ctx = parent.getService(IEclipseContext.class);
     if (ctx != null) {
       serviceLocator.setContext(ctx.createChild());
     }
   }
   return serviceLocator;
 }