|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.apps.groupspace.content.ContentFactoryImpl<T>
com.bea.apps.groupspace.content.CmBrowserContentBaseFactory<T>
public class CmBrowserContentBaseFactory<T extends ContentBase>
Copyright (c) 2005-2006 by BEA Systems, Inc. All Rights Reserved.
Factory for the CM Browser Node wrappers.
Field Summary | |
---|---|
protected static CmBrowserContentBaseFactory |
thisFactory
|
protected static Map<String,Class> |
typeNameToClassHash
|
Fields inherited from class com.bea.apps.groupspace.content.ContentFactoryImpl |
---|
debug |
Constructor Summary | |
---|---|
protected |
CmBrowserContentBaseFactory()
|
Method Summary | |
---|---|
T |
createContentWrapper(Node nodeToWrap,
Class<T> typeConstraint)
Creates a CM browser Node wrappers based on information in the node
CmBrowserBean - has ObjectClass and has no children
CmBrowserContentFolder - has ObjectClass but has no children
CmBrowserFolder - has no ObjectClass but does have children
CmBrowserTypelessContent - has no ObjectClass and no children
|
T |
createContentWrapper(String cmTypeName,
Class<T> typeConstraint)
No CM Browser Node wrappers should be created based on type |
protected Class |
getClassFromMap(String cmTypeName)
No CM Browser Node wrappers should be created based on type |
static ContentFactory |
getInstance()
singleton factory get method |
protected Class |
getMinimumClass()
should match the class T extends as specified in the class declaration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static Map<String,Class> typeNameToClassHash
protected static CmBrowserContentBaseFactory thisFactory
Constructor Detail |
---|
protected CmBrowserContentBaseFactory()
Method Detail |
---|
public static ContentFactory getInstance() throws ClassNotFoundException
ClassNotFoundException
public T createContentWrapper(Node nodeToWrap, Class<T> typeConstraint) throws InstantiationException, IllegalAccessException
Node
wrappers based on information in the node
ObjectClass
and has no children
ObjectClass
but has no children
ObjectClass
but does have children
ObjectClass
and no children
createContentWrapper
in interface ContentFactory<T extends ContentBase>
createContentWrapper
in class ContentFactoryImpl<T extends ContentBase>
nodeToWrap
- node to be wrappertypeConstraint
- type returns must be assignable from
InstantiationException
IllegalAccessException
public T createContentWrapper(String cmTypeName, Class<T> typeConstraint) throws InstantiationException, IllegalAccessException
createContentWrapper
in interface ContentFactory<T extends ContentBase>
createContentWrapper
in class ContentFactoryImpl<T extends ContentBase>
cmTypeName
- ignoredtypeConstraint
- ignored
InstantiationException
IllegalAccessException
RuntimeException
- alwaysprotected Class getMinimumClass()
getMinimumClass
in class ContentFactoryImpl<T extends ContentBase>
protected Class getClassFromMap(String cmTypeName)
getClassFromMap
in class ContentFactoryImpl<T extends ContentBase>
cmTypeName
-
RuntimeException
- always
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |