org.ogf.graap.wsag.client.impl
Class DefaultAgreementFactoryRegistryBuilder

java.lang.Object
  extended by org.ogf.graap.wsag.client.impl.DefaultAgreementFactoryRegistryBuilder
All Implemented Interfaces:
AgreementFactoryRegistryBuilder

public class DefaultAgreementFactoryRegistryBuilder
extends Object
implements AgreementFactoryRegistryBuilder

DefaultAgreementFactoryCreator

Author:
Oliver Waeldrich

Constructor Summary
DefaultAgreementFactoryRegistryBuilder()
           
 
Method Summary
 AgreementFactoryRegistryClient newInstance(EndpointReferenceType epr)
          Creates a new factory registry client for a given endpoint.
 AgreementFactoryRegistryClient newInstance(EndpointReferenceType epr, LoginContext context)
          Creates a new factory registry client for a given endpoint using the given login context .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAgreementFactoryRegistryBuilder

public DefaultAgreementFactoryRegistryBuilder()
Method Detail

newInstance

public AgreementFactoryRegistryClient newInstance(EndpointReferenceType epr)
                                           throws Exception
Creates a new factory registry client for a given endpoint. This method can only be used when server side security is disabled.

Specified by:
newInstance in interface AgreementFactoryRegistryBuilder
Parameters:
epr - the factory registry endpoint
Returns:
the factory registry client
Throws:
Exception - the instantiation of the registry implementation failed
See Also:
AgreementFactoryRegistryBuilder.newInstance(EndpointReferenceType)

newInstance

public AgreementFactoryRegistryClient newInstance(EndpointReferenceType epr,
                                                  LoginContext context)
                                           throws Exception
Creates a new factory registry client for a given endpoint using the given login context . This method is used when server side security is enabled (default).

Specified by:
newInstance in interface AgreementFactoryRegistryBuilder
Parameters:
epr - the factory registry endpoint
context - the login context to use
Returns:
the factory registry client
Throws:
Exception - the instantiation of the registry implementation failed
See Also:
AgreementFactoryRegistryBuilder.newInstance(org.w3.x2005.x08.addressing.EndpointReferenceType , javax.security.auth.login.LoginContext)


Copyright © 2008-2012 Fraunhofer Institute SCAI. All Rights Reserved.