Forge - Resource Addon Impl 2.0.0.Alpha3

org.jboss.forge.resource
Class ResourceFactoryImpl

java.lang.Object
  extended by org.jboss.forge.resource.ResourceFactoryImpl
All Implemented Interfaces:
ResourceFactory, ResourceTransactionManager

@Singleton
public class ResourceFactoryImpl
extends Object
implements ResourceFactory, ResourceTransactionManager

Author:
Ken Finnigan, Mike Brock

Constructor Summary
ResourceFactoryImpl()
           
 
Method Summary
<E,T extends Resource<E>>
T
create(Class<T> type, E underlyingResource)
           
<E> Resource<E>
create(E underlyingResource)
           
 ResourceFactory fireEvent(ResourceEvent event)
           
 ResourceTransaction getCurrentTransaction()
           
 ResourceTransaction startTransaction()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceFactoryImpl

public ResourceFactoryImpl()
Method Detail

create

public <E,T extends Resource<E>> T create(Class<T> type,
                                          E underlyingResource)
Specified by:
create in interface ResourceFactory

create

public <E> Resource<E> create(E underlyingResource)
Specified by:
create in interface ResourceFactory

fireEvent

public ResourceFactory fireEvent(ResourceEvent event)
Specified by:
fireEvent in interface ResourceFactory

getCurrentTransaction

public ResourceTransaction getCurrentTransaction()
Specified by:
getCurrentTransaction in interface ResourceTransactionManager

startTransaction

public ResourceTransaction startTransaction()
                                     throws ResourceException
Specified by:
startTransaction in interface ResourceTransactionManager
Throws:
ResourceException

Forge - Resource Addon Impl 2.0.0.Alpha3

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.