Author: richard.opalka(a)jboss.com
Date: 2009-09-24 09:03:38 -0400 (Thu, 24 Sep 2009)
New Revision: 10769
Removed:
common/branches/ropalka/src/main/java/org/jboss/wsf/common/KernelAwareSPIFactory.java
Log:
[JBWS-2772] removing AS IL dependency
Deleted:
common/branches/ropalka/src/main/java/org/jboss/wsf/common/KernelAwareSPIFactory.java
===================================================================
---
common/branches/ropalka/src/main/java/org/jboss/wsf/common/KernelAwareSPIFactory.java 2009-09-24
13:02:25 UTC (rev 10768)
+++
common/branches/ropalka/src/main/java/org/jboss/wsf/common/KernelAwareSPIFactory.java 2009-09-24
13:03:38 UTC (rev 10769)
@@ -1,42 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.wsf.common;
-
-import org.jboss.dependency.spi.ControllerContext;
-import org.jboss.kernel.spi.dependency.KernelController;
-import org.jboss.wsf.spi.util.KernelLocator;
-
-/**
- * SPI factory delegating to kernel for bean lookups
- * @author richard.opalka(a)jboss.com
- * @author Heiko.Braun(a)jboss.com
- */
-public class KernelAwareSPIFactory
-{
- @SuppressWarnings("unchecked")
- public <T> T getKernelProvidedSPI(String beanName, Class<T> spiArtifact)
- {
- KernelController controller = KernelLocator.getKernel().getController();
- ControllerContext ctx = controller.getInstalledContext(beanName);
- return (T)ctx.getTarget();
- }
-}