org.ops4j.pax.wicket.util
Class BundleInjectionProviderHelper

java.lang.Object
  extended by org.ops4j.pax.wicket.util.BundleInjectionProviderHelper

public final class BundleInjectionProviderHelper
extends Object

BundleClassResolverHelper is a helper to register IClassResolver.


Constructor Summary
BundleInjectionProviderHelper(org.osgi.framework.BundleContext bundleContext, String applicationName, String injectionSource)
          Construct an instance of BundleClassResolver.
 
Method Summary
 void dispose()
          Unregister class resolver.
 String getServicePid()
           
 void register()
          Register class resolver.
 void setApplicationName(String applicationName)
          Sets the application nane.
 void setServicePid(String servicePid)
          Sets the service pid of this BundleClassResolverHelper instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleInjectionProviderHelper

public BundleInjectionProviderHelper(org.osgi.framework.BundleContext bundleContext,
                                     String applicationName,
                                     String injectionSource)
                              throws IllegalArgumentException
Construct an instance of BundleClassResolver. The injectionSource is defined as constant in PaxWicketBean.

Throws:
IllegalArgumentException
Method Detail

setServicePid

public final void setServicePid(String servicePid)
Sets the service pid of this BundleClassResolverHelper instance. This is useful if this class resolver needs to be wired to multiple pax-wicket applications.


getServicePid

public final String getServicePid()
Returns:
The service pid of this BundleClassResolverHelper. Returns null if not set.

setApplicationName

public final void setApplicationName(String applicationName)
Sets the application nane.


register

public final void register()
Register class resolver.


dispose

public final void dispose()
Unregister class resolver.



Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.