org.jboss.osgi.husky
Class BridgeFactory

java.lang.Object
  extended by org.jboss.osgi.husky.BridgeFactory

public abstract class BridgeFactory
extends Object

Loads the configured Bridge instance.

Since:
16-May-2009
Author:
Thomas.Diesler@jboss.com

Constructor Summary
BridgeFactory()
           
 
Method Summary
static Bridge getBridge()
          Loads the bridge class that is configed through the system property Bridge.
static Bridge getBridge(Object key)
          Get the cached instance of the bridge class that is configed through the system property Bridge.
static Bridge getBridge(Object key, Properties props)
          Loads the bridge class that is configed through the property Bridge.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BridgeFactory

public BridgeFactory()
Method Detail

getBridge

public static Bridge getBridge()
Loads the bridge class that is configed through the system property Bridge. If there is no such property, it returns an instance of BasicBridge.


getBridge

public static Bridge getBridge(Object key)
Get the cached instance of the bridge class that is configed through the system property Bridge. If there is no cached instance it creates a new instance.


getBridge

public static Bridge getBridge(Object key,
                               Properties props)
Loads the bridge class that is configed through the property Bridge. If the loaded bridge has a constructor that takes a Properties parameter, that constructor is used. Otherwise the bridge will be instanciated with the default constructor

Parameters:
props - bridge properties


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.